~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-29 06:08:13 UTC
  • Revision ID: admin@quickmediasolutions.com-20110729060813-eu9zx9diul4yot20
Added latest changes - not much.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    m_indices[total_divisions + 1] = 0;
79
79
}
80
80
 
 
81
GLfloat verts[] = { -1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f, -1.0f,-1.0f };
 
82
GLubyte inds[]   = { 0, 1, 2, 3 };
 
83
 
81
84
void Bubble::Render(int ms)
82
85
{
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
86
    glEnable(GL_BLEND);
87
87
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
88
 
    glColor4f(0.5, 0.5, 0.5, 0.2f);
 
88
    glColor4f(0.5f, 1.0f, 0.5f, 0.4f);
89
89
    glEnableClientState(GL_VERTEX_ARRAY);
90
 
    glVertexPointer(2, GL_FLOAT, 0, verts);
91
 
    glDrawElements(GL_QUADS, 4, GL_UNSIGNED_INT, inds);
 
90
    glVertexPointer(2, GL_FLOAT, 0, &(verts[0]));
 
91
    glDrawElements(GL_QUADS, 4, GL_UNSIGNED_BYTE, &(inds[0]));
92
92
    glDisableClientState(GL_VERTEX_ARRAY);
 
93
    glColor4usv(defaultColor);
93
94
    glDisable(GL_BLEND);
94
95
    
95
96
    /*