Esempio n. 1
0
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);
}
Esempio n. 2
0
File: haze.cpp Progetto: garinh/cs
const csBox3& csHazeMeshObject::GetObjectBoundingBox ()
{
  SetupObject ();
  return bbox;
}
Esempio n. 3
0
File: spr2d.cpp Progetto: garinh/cs
const csBox3& csSprite2DMeshObject::GetObjectBoundingBox ()
{
  SetupObject ();
  obj_bbox.Set (-radius, radius);
  return obj_bbox;
}