comparison engine/core/video/opengl/renderbackendopengl.h @ 430:ad1f09d954f9

Added the ability to render a vertex on the screen. The vertex is represented by a small square. fixes[t:455]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 23 Feb 2010 19:25:59 +0000
parents ad7969d9460b
children b2feacaed53c
comparison
equal deleted inserted replaced
429:be291458d9b5 430:ad1f09d954f9
49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); 49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height);
50 Image* createImage(SDL_Surface* surface); 50 Image* createImage(SDL_Surface* surface);
51 bool putPixel(int x, int y, int r, int g, int b); 51 bool putPixel(int x, int y, int r, int g, int b);
52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b); 52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b);
53 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b); 53 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b);
54 54 void drawVertex(const Point& p, const uint8_t size, int r, int g, int b);
55
55 private: 56 private:
56 SDL_PixelFormat m_rgba_format; 57 SDL_PixelFormat m_rgba_format;
57 }; 58 };
58 59
59 } 60 }