1 #ifndef UGDK_GRAPHIC_MANAGER_H_
2 #define UGDK_GRAPHIC_MANAGER_H_
24 #pragma SWIG nowarn=325
45 void AttachTo(
const std::shared_ptr<desktop::Window>&);
89 std::bitset<NUM_FLAGS> flags_;
104 void ReleaseTextureUnitID(
int id);
107 std::unique_ptr<RenderScreen> screen_;
108 std::unique_ptr<RenderTexture> light_buffer_;
109 std::unique_ptr<util::IDGenerator> textureunit_ids_;
110 graphic::GLTexture* white_texture_;
115 friend class ::ugdk::graphic::TextureUnit;
121 #endif // UGDK_GRAPHIC_MANAGER_H_
VertexType
Definition: manager.h:33
const ShaderProgram * GetSpecificShader(const std::bitset< NUM_FLAGS > &flags) const
void AttachTo(const std::shared_ptr< desktop::Window > &)
Definition: vector2D.h:18
void ReplaceShader(const std::bitset< NUM_FLAGS > &flags, ShaderProgram *program)
Replace the ShaderProgram UGDK uses for the given combination of flags.
bool Initialize(const std::weak_ptr< desktop::Window > &, const math::Vector2D &canvas_size)
Definition: rendertexture.h:14
void ReplaceShader(const std::string &flags, ShaderProgram *program)
Definition: manager.h:80
const ShaderProgram * current_shader() const
unsigned int LocationForVertexType(VertexType)
ShaderProgram * light_shader()
Definition: manager.h:100
Definition: textureunit.h:10
Definition: animation.h:11
const Shaders & shaders() const
Definition: manager.h:99
graphic::GLTexture * white_texture()
Definition: manager.h:97
RenderTarget * screen() const
action::Scene * CreateLightrenderingScene(std::function< void(Canvas &)> render_light_function)
void ReplaceShader(unsigned long flags, ShaderProgram *program)
Definition: manager.h:76
void DisableVertexType(VertexType)
TextureUnit ReserveTextureUnit(const graphic::GLTexture *texture=nullptr)
void ResizeScreen(const math::Vector2D &canvas_size)
Definition: shaderprogram.h:11
void * SDL_GLContext
Definition: manager.h:19
void ChangeFlag(Flag, bool)
Shaders & shaders()
Definition: manager.h:98
RenderTexture * light_buffer() const
Definition: manager.h:95
bool IsFlagSet(Flag) const
Flag
Definition: manager.h:56
Definition: rendertarget.h:12