mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
skybox: added moon and stars
This commit is contained in:
parent
b42a517cc6
commit
a4a5aef422
22 changed files with 258 additions and 52 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "../typedefs.h"
|
||||
#include "Viewport.h"
|
||||
#include "../window/Window.h"
|
||||
|
||||
class Batch2D;
|
||||
|
||||
|
|
@ -10,8 +11,10 @@ class GfxContext {
|
|||
const GfxContext* parent;
|
||||
Viewport& viewport;
|
||||
Batch2D* const g2d;
|
||||
bool depthMask_ = true;
|
||||
bool depthTest_ = false;
|
||||
bool cullFace_ = false;
|
||||
blendmode blendMode_ = blendmode::normal;
|
||||
public:
|
||||
GfxContext(const GfxContext* parent, Viewport& viewport, Batch2D* g2d);
|
||||
~GfxContext();
|
||||
|
|
@ -20,8 +23,10 @@ public:
|
|||
const Viewport& getViewport() const;
|
||||
GfxContext sub() const;
|
||||
|
||||
void depthMask(bool flag);
|
||||
void depthTest(bool flag);
|
||||
void cullFace(bool flag);
|
||||
void blendMode(blendmode mode);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_GFX_CONTEXT_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue