void PreviewPane::initializeGL() { initializeOpenGLFunctions(); printVersionInformation(); glClearColor(0.15f, 0.15f, 0.15f, 1.0f); SetupShaders(); SetupVertexBuffer(); SetupObject(); //SetupTexture(); object.release(); vertex.release(); program->release(); _initialized = true; glGenTextures(1, &textureRed); glGenTextures(1, &textureGreen); glGenTextures(1, &textureBlue); }
const csBox3& csHazeMeshObject::GetObjectBoundingBox () { SetupObject (); return bbox; }
const csBox3& csSprite2DMeshObject::GetObjectBoundingBox () { SetupObject (); obj_bbox.Set (-radius, radius); return obj_bbox; }