Changeset 1988
- Timestamp:
- Oct 8, 2012, 9:12:34 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/texture.cpp
r1987 r1988 67 67 static GLenum const TEXTURE_FORMAT = GL_RGBA; 68 68 static GLenum const TEXTURE_TYPE = GL_UNSIGNED_BYTE; 69 #el se69 #elif !defined USE_D3D9 && !defined _XBOX 70 70 /* Seems efficient for little endian textures */ 71 71 static GLint const INTERNAL_FORMAT = GL_RGBA; -
trunk/tutorial/11_fractal.cpp
r1987 r1988 14 14 15 15 #include <cstring> 16 #include <cstdio> 16 17 17 18 #include "core.h" 18 19 #include "loldebug.h" 20 21 #if defined _WIN32 22 # include <direct.h> 23 #endif 19 24 20 25 using namespace lol; … … 280 285 #if !defined __native_client__ 281 286 char buf[256]; 282 s printf(buf, "center: ");287 std::sprintf(buf, "center: "); 283 288 m_center.x.sprintf(buf + strlen(buf), 30); 284 s printf(buf + strlen(buf), " ");289 std::sprintf(buf + strlen(buf), " "); 285 290 m_center.y.sprintf(buf + strlen(buf), 30); 286 291 m_centertext->SetText(buf); 287 s printf(buf, " mouse: ");292 std::sprintf(buf, " mouse: "); 288 293 worldmouse.x.sprintf(buf + strlen(buf), 30); 289 s printf(buf + strlen(buf), " ");294 std::sprintf(buf + strlen(buf), " "); 290 295 worldmouse.y.sprintf(buf + strlen(buf), 30); 291 296 m_mousetext->SetText(buf); 292 s printf(buf, " zoom: %g", 1.0 / m_radius);297 std::sprintf(buf, " zoom: %g", 1.0 / m_radius); 293 298 m_zoomtext->SetText(buf); 294 299 #endif
Note: See TracChangeset
for help on using the changeset viewer.