skybox: added moon and stars
This commit is contained in:
@@ -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_
|
||||
Reference in New Issue
Block a user