diff options
Diffstat (limited to 'src/graphics/Renderer.cpp')
| -rw-r--r-- | src/graphics/Renderer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index f07d548..d5eb43a 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -2272,6 +2272,17 @@ void Renderer::drawblob(int x, int y, unsigned char cr, unsigned char cg, unsign blendpixel(x-1, y+1, cr, cg, cb, 64); } +pixel Renderer::GetPixel(int x, int y) +{ + if (x<0 || y<0 || x>=VIDXRES || y>=VIDYRES) + return 0; +#ifdef OGLR + return 0; +#else + return vid[(y*VIDXRES)+x]; +#endif +} + Renderer::Renderer(Graphics * g, Simulation * sim): sim(NULL), g(NULL), |
