diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-18 21:47:47 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-18 21:47:47 +0200 |
commit | 86ea086790a677d6de6a836e7562814d3ba30bd1 (patch) | |
tree | ce300142f29ade9a0144c123688ef57aa198defe /src/graphics/opengl/gldevice.h | |
parent | f364f378cf497faf61d78aadd8f1aebce678c0ec (diff) | |
download | colobot-86ea086790a677d6de6a836e7562814d3ba30bd1.tar.gz colobot-86ea086790a677d6de6a836e7562814d3ba30bd1.tar.bz2 colobot-86ea086790a677d6de6a836e7562814d3ba30bd1.zip |
ComputeSphereVisibility function
- borrowed implementation of ComputeSphereVisibility from libwine
- added -lrt to Linux libs
Diffstat (limited to 'src/graphics/opengl/gldevice.h')
-rw-r--r-- | src/graphics/opengl/gldevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h index 2b1b05d..56ea2c0 100644 --- a/src/graphics/opengl/gldevice.h +++ b/src/graphics/opengl/gldevice.h @@ -117,6 +117,7 @@ public: virtual void DrawPrimitive(Gfx::PrimitiveType type, Gfx::VertexCol *vertices, int vertexCount); virtual void DrawPrimitive(Gfx::PrimitiveType type, VertexTex2 *vertices, int vertexCount); + virtual int ComputeSphereVisibility(Math::Vector center, float radius); virtual void SetRenderState(Gfx::RenderState state, bool enabled); virtual bool GetRenderState(Gfx::RenderState state); |