Re: I need vertex buffers
"brianhj" <[email protected]> Fri, 27 Jan 2017 02:43:10 +0000
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Unfortunately I can't even get a simple program to work:
Code:
#include "SDL.h"
#include "SDL_gpu.h"
void main_loop(GPU_Target* screen) {
while (true) {
GPU_Clear(screen);
GPU_Line(screen, 0.f, 0.f, 123.f, 123.f, SDL_Color({ 123,255,255 }));
GPU_Flip(screen);
}
}
int main(int argc, char* argv[])
{
GPU_Target* screen;
screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS);
if (screen == NULL)
return -1;
main_loop(screen);
GPU_Quit();
return 0;
}
Any ideas??? It's just a black screen. I used strange coords and colors to make sure I was sane.
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org