Changeset 702
- Timestamp:
- Feb 28, 2011, 3:26:21 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debugquad.cpp
r701 r702 33 33 private: 34 34 int initialised; 35 float time; 35 36 #if defined HAVE_GL_2X || defined HAVE_GLES_2X 36 37 GLuint buflist[3]; … … 51 52 { 52 53 data->initialised = 0; 54 data->time = 0.0f; 53 55 } 54 56 … … 56 58 { 57 59 Entity::TickGame(deltams); 60 61 data->time += deltams; 58 62 } 59 63 … … 129 133 } 130 134 131 static GLfloat const verts[6][2] = 132 { 133 { -0.9f, 0.9f }, { 0.9f, 0.9f }, { -0.9f, -0.9f }, 134 { -0.9f, -0.9f }, { 0.9f, 0.9f }, { 0.9f, -0.9f }, 135 float const st = sinf(0.0005f * data->time); 136 float const ct = cosf(0.0005f * data->time); 137 138 GLfloat const verts[6][2] = 139 { 140 { -0.7f * (st + ct), 0.7f * (st - ct) }, 141 { 0.7f * (st - ct), 0.7f * (st + ct) }, 142 { -0.7f * (st - ct), -0.7f * (st + ct) }, 143 144 { -0.7f * (st - ct), -0.7f * (st + ct) }, 145 { 0.7f * (st - ct), 0.7f * (st + ct) }, 146 { 0.7f * (st + ct), -0.7f * (st - ct) }, 135 147 }; 136 148
Note: See TracChangeset
for help on using the changeset viewer.