BambooIsland: C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/SceneObject_OgreImport.h Source File

BambooIsland Abgabe 2

- Main Page
- Related Pages
- Classes
- Files

- File List

# C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/SceneObject_OgreImport.h

    00001 /*
    00002  * header file for SceneObject_OgreImport class
    00003  * written by: christian moellinger <ch.moellinger@gmail.com>
    00004  * 10/2010
    00005  */
    00006
    00007 #pragma once
    00008
    00009 #ifndef __realtime_sceneobject_ogre_import
    00010 #define __realtime_sceneobject_ogre_import
    00011
    00012 #include "SceneObject.h"
    00013 #include "Modelsmanager.h"
    00014 #include <string>
    00015 #include <vector>
    00016
    00017 /* ATTENTION:
    00018  * TODO: redesign, because this class must not have children - that will cause troubles!
    00019  * */
    00020
    00022
    00028 class SceneObject_OgreImport : public SceneObject
    00029 {
    00030 private:
    00031         Modelsmanager modelsmanager;
    00032         Model *model;
    00033         string realname;
    00034
    00035         std::vector<glm::mat4> instancedModelTransformMatrices;
    00036
    00037         GLuint vao;
    00038         GLuint vertex_buffer;
    00039         GLuint index_buffer;
    00040         int indexArray_size;
    00041
    00042         bool hasColormap;
    00043         bool hasBumpmap;
    00044         bool hasNormalmap;
    00045
    00046         bool isClone;
    00047
    00048         void sendInstancedTransformMatrices();
    00049 public:
    00050         virtual void itlRender();
    00051
    00053         void addInstancedTransformMatrix(glm::mat4 mat);
    00054
    00056         SceneObject_OgreImport(const char * filename);
    00057
    00059         SceneObject_OgreImport(SceneObject_OgreImport *src);
    00060
    00062         ~SceneObject_OgreImport();
    00063 };
    00064
    00065 #endif

All Classes Functions Variables Enumerations Enumerator