diff options
Diffstat (limited to 'samples/triangle/main.c')
-rw-r--r-- | samples/triangle/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/samples/triangle/main.c b/samples/triangle/main.c index 1e9508b..e228607 100644 --- a/samples/triangle/main.c +++ b/samples/triangle/main.c @@ -244,15 +244,15 @@ void Background(ESContext *esContext, unsigned int r, unsigned int g, unsigned i void Draw ( ESContext *esContext ) { UserData *userData = esContext->userData; - GLfloat vVertices[] = { 0.0f, 0.5f, 0.0f, - -0.5f, -0.5f, 0.0f, - 0.5f, -0.5f, 0.0f }; +// GLfloat vVertices[] = { 0.0f, 0.5f, 0.0f, +// -0.5f, -0.5f, 0.0f, +// 0.5f, -0.5f, 0.0f }; // Set the viewport - glViewport ( 0, 0, esContext->width, esContext->height ); +// glViewport ( 0, 0, esContext->width, esContext->height ); // Clear the color buffer - glClear ( GL_COLOR_BUFFER_BIT ); +// glClear ( GL_COLOR_BUFFER_BIT ); // Use the program object // glUseProgram ( userData->programObject ); @@ -279,10 +279,10 @@ int main ( int argc, char *argv[] ) esInitContext ( &esContext ); esContext.userData = &userData; - esCreateWindow ( &esContext, "Hello Triangle", 320, 240, ES_WINDOW_RGB ); + esCreateWindow ( &esContext, "Hello Triangle", 640, 480, ES_WINDOW_RGB ); - if ( !Init ( &esContext ) ) - return 0; +// if ( !Init ( &esContext ) ) +// return 0; esRegisterDrawFunc ( &esContext, Draw ); |