~george-edison55/stackfusion/trunk

« back to all changes in this revision

Viewing changes to plugins/stackfusion/src/bubble.cpp

  • Committer: Nathan Osman
  • Date: 2011-07-28 06:44:54 UTC
  • Revision ID: admin@quickmediasolutions.com-20110728064454-gn8vf5crm50t2wwl
Managed to get a grey rectangle to appear but still problems with repainting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 
81
81
void Bubble::Render(int ms)
82
82
{
 
83
    GLfloat verts[] = { -1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f, -1.0f,-1.0f };
 
84
    GLuint inds[]   = { 0, 1, 2, 3 };
 
85
    
 
86
    glEnable(GL_BLEND);
 
87
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
88
    glColor4f(0.5, 0.5, 0.5, 0.2f);
 
89
    glEnableClientState(GL_VERTEX_ARRAY);
 
90
    glVertexPointer(2, GL_FLOAT, 0, verts);
 
91
    glDrawElements(GL_QUADS, 4, GL_UNSIGNED_INT, inds);
 
92
    glDisableClientState(GL_VERTEX_ARRAY);
 
93
    glDisable(GL_BLEND);
 
94
    
 
95
    /*
83
96
    // Check for a transition
84
97
    float trans = 1.0f;
85
98
    
104
117
    glDrawElements(GL_TRIANGLE_FAN, (NUM_DIVISIONS + 1) * 4 + 2, GL_UNSIGNED_INT, m_indices);
105
118
    glDisableClientState(GL_VERTEX_ARRAY);
106
119
    
107
 
    glColor4usv(defaultColor)
 
120
    glColor4usv(defaultColor);
108
121
    glDisable(GL_BLEND);
109
122
    glPopMatrix();
 
123
    */
110
124
}