Changeset 2610
- Timestamp:
- Mar 28, 2013, 12:43:11 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/entity.cpp
r2216 r2610 53 53 void Entity::TickGame(float seconds) 54 54 { 55 (void)seconds;55 UNUSED(seconds); 56 56 #if !LOL_RELEASE 57 57 if (m_tickstate != STATE_PRETICK_GAME) -
trunk/src/gpu/shader.cpp
r2546 r2610 164 164 { 165 165 /* XXX: do nothing! the shader should remain in cache */ 166 (void)shader;166 UNUSED(shader); 167 167 } 168 168 -
trunk/src/gpu/vertexbuffer.cpp
r2591 r2610 240 240 case MeshPrimitive::Triangles: 241 241 /* FIXME: ignores most of the arguments! */ 242 (void)vbase; (void)vskip; (void)vcount; (void)skip;242 UNUSED(vbase, vskip, vcount, skip); 243 243 glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, 0); 244 244 break; 245 245 case MeshPrimitive::TriangleStrips: 246 246 /* FIXME: ignores most of the arguments! */ 247 (void)vbase; (void)vskip; (void)vcount; (void)skip;247 UNUSED(vbase, vskip, vcount, skip); 248 248 glDrawElements(GL_TRIANGLE_STRIP, count, GL_UNSIGNED_SHORT, 0); 249 249 break; 250 250 case MeshPrimitive::TriangleFans: 251 251 /* FIXME: ignores most of the arguments! */ 252 (void)vbase; (void)vskip; (void)vcount; (void)skip;252 UNUSED(vbase, vskip, vcount, skip); 253 253 glDrawElements(GL_TRIANGLE_FAN, count, GL_UNSIGNED_SHORT, 0); 254 254 break; 255 255 case MeshPrimitive::Points: 256 256 /* FIXME: ignores most of the arguments! */ 257 (void)vbase; (void)vskip; (void)vcount; (void)skip;257 UNUSED(vbase, vskip, vcount, skip); 258 258 glDrawElements(GL_POINTS, count, GL_UNSIGNED_SHORT, 0); 259 259 break; 260 260 case MeshPrimitive::Lines: 261 261 /* FIXME: ignores most of the arguments! */ 262 (void)vbase; (void)vskip; (void)vcount; (void)skip;262 UNUSED(vbase, vskip, vcount, skip); 263 263 glDrawElements(GL_LINES, count, GL_UNSIGNED_SHORT, 0); 264 264 break; … … 646 646 #else 647 647 /* FIXME: is there a way to use "size"? */ 648 (void)size;648 UNUSED(size); 649 649 return m_data->m_memory + offset; 650 650 #endif -
trunk/src/lol/gpu/vertexbuffer.h
r2507 r2610 159 159 160 160 #define LOL_TYPE(T) \ 161 static uint8_t GetType(T *x) { (void)x; return Type##T; }161 static uint8_t GetType(T *x) { UNUSED(x); return Type##T; } 162 162 163 163 LOL_TYPE(void) … … 192 192 inline void VertexStreamBase::AddStream<void>(int n, VertexUsage usage) 193 193 { 194 (void)usage;194 UNUSED(usage); 195 195 m_streams[n].size = 0; 196 196 } -
trunk/src/platform/sdl/sdlinput.cpp
r2506 r2610 202 202 Input::KeyPressed(i, seconds); 203 203 #else 204 (void)seconds;204 UNUSED(seconds); 205 205 #endif 206 206 #endif -
trunk/src/tileset.cpp
r2609 r2610 68 68 { 69 69 Init(path); 70 71 m_drawgroup = DRAWGROUP_BEFORE;72 70 } 73 71 … … 86 84 if (size.x <= 0 || size.y <= 0) 87 85 size = ivec2(32, 32); 88 count = ivec2(max(1, m_data->m_image_size.x / size.x), 89 max(1, m_data->m_image_size.y / size.y)); 86 count = max(ivec2(1, 1), m_data->m_image_size / size); 90 87 } 91 88 … … 96 93 size * ivec2(i + 1, j + 1))); 97 94 } 98 99 m_drawgroup = DRAWGROUP_BEFORE;100 95 } 101 96 … … 109 104 m_data->m_texture_size = ivec2(PotUp(m_data->m_image_size.x), 110 105 PotUp(m_data->m_image_size.y)); 106 107 m_drawgroup = DRAWGROUP_BEFORE; 111 108 } 112 109 … … 195 192 ivec2 TileSet::GetTileSize(int tileid) const 196 193 { 197 (void)tileid;198 199 194 ibox2 const &box = m_data->m_tiles[tileid].m1; 200 195 return box.B - box.A;
Note: See TracChangeset
for help on using the changeset viewer.