Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Trying to make my first boiler plate opengl sdl 2.0 code

$
0
0

Hi I am trying to organise my first boiler plate code for Opengl and SDL2.0 window on linux in C++ or C I plan to change he code to keep the window open and constantly re-draw the sceen to make animations using a true while loop and set it to break the loop with EOF, for the time being why is the screen not appearing black and just appearing transparent, is my opengl code in the right place?or  am I missing some code to blank the screen? thanks.

/*
 * -lSDL2
 * -lGL -lGLU -lglut
 */
 
#include <SDL2/SDL.h>
#include <stdio …

Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>