X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FViewport.hpp;h=03e0e0d05c247420387bdc5fc1c851a71b3f992b;hb=8ab4ea13545cccbacbd1ed610968d3f481c1b3c8;hp=0bd6e89018d1ff6ed2d46b719a9131d086edda51;hpb=50f35affb16c78bd3d0b420f5ba37d74fcac391f;p=blank.git diff --git a/src/graphics/Viewport.hpp b/src/graphics/Viewport.hpp index 0bd6e89..03e0e0d 100644 --- a/src/graphics/Viewport.hpp +++ b/src/graphics/Viewport.hpp @@ -7,6 +7,8 @@ #include "Camera.hpp" #include "Canvas.hpp" #include "DirectionalLighting.hpp" +#include "PlainColor.hpp" +#include "SkyBoxShader.hpp" #include @@ -24,6 +26,7 @@ public: void VSync(bool b) noexcept; void EnableDepthTest() noexcept; + void EqualDepthTest() noexcept; void DisableDepthTest() noexcept; void EnableBackfaceCulling() noexcept; @@ -42,13 +45,16 @@ public: void ClearDepth() noexcept; void SetCursor(const glm::vec3 &); - void SetCursor(const glm::vec3 &, Gravity = Gravity::NORTH_WEST); + void SetCursor(const glm::vec3 &, Gravity); void MoveCursor(const glm::vec3 &); const glm::mat4 &Cursor() const noexcept { return cursor; } BlockLighting &ChunkProgram() noexcept; DirectionalLighting &EntityProgram() noexcept; DirectionalLighting &HUDProgram() noexcept; + PlainColor &WorldOutlineProgram() noexcept; + PlainColor &HUDOutlineProgram() noexcept; + SkyBoxShader &SkyBoxProgram() noexcept; BlendedSprite &SpriteProgram() noexcept; void WorldPosition(const glm::mat4 &) noexcept; @@ -64,6 +70,8 @@ private: BlockLighting chunk_prog; DirectionalLighting entity_prog; + PlainColor outline_prog; + SkyBoxShader sky_prog; BlendedSprite sprite_prog; enum { @@ -71,6 +79,9 @@ private: CHUNK, ENTITY, HUD, + OUTLINE_WORLD, + OUTLINE_HUD, + SKY_BOX, SPRITE, } active_prog;