projects
/
sdlhildon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GLESv2 sample working
[sdlhildon]
/
sdlgles
/
test
/
gles1.c
diff --git
a/sdlgles/test/gles1.c
b/sdlgles/test/gles1.c
index
6d844f0
..
5425ecd
100644
(file)
--- a/
sdlgles/test/gles1.c
+++ b/
sdlgles/test/gles1.c
@@
-18,7
+18,7
@@
static SDL_Surface *screen;
static SDL_GLES_Context *context;
static SDL_Surface *screen;
static SDL_GLES_Context *context;
-static float box_step = 0.05f;
+static float box_step = 0.025f;
static const float w = 0.28f, h = 0.4f;
static float x = -0.5f, y = 0.0f;
static const float w = 0.28f, h = 0.4f;
static float x = -0.5f, y = 0.0f;
@@
-76,9
+76,10
@@
int main()
screen = SDL_SetVideoMode(0, 0, 16, SDL_SWSURFACE);
assert(screen);
screen = SDL_SetVideoMode(0, 0, 16, SDL_SWSURFACE);
assert(screen);
+ SDL_WM_SetCaption("SDLgles v1 test");
SDL_ShowCursor(SDL_DISABLE);
SDL_ShowCursor(SDL_DISABLE);
- SDL_TimerID timer = SDL_AddTimer(50, tick, NULL);
+ SDL_TimerID timer = SDL_AddTimer(30, tick, NULL);
assert(timer != NULL);
context = SDL_GLES_CreateContext();
assert(timer != NULL);
context = SDL_GLES_CreateContext();