My current code (plain C) draws a number of lines using a function like this
- Code: Select all
void plotline (unsigned short int *framebuffer,int x1, int y1, int x2, int y2, unsigned short int color)
x,y origin to x,y destination in 16 bit 565 color.
I want to do the same sort of thing in GL but all the demos are find seem vastly over complicated with textures and spinning viewing angles etc, can anyone point me at a simple 2d annimation demo that I can crib from ?
I want to draw N lines in the form x1,y1 to x2,y2 in color C, then re-draw them in different poistions for each frame