Gorgon Game Engine
GL.h File Reference
Include dependency graph for GL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::GL
 This namespace contains underlying graphics library functions.
 

Functions

void Clear ()
 Clears the window pointed by the active context. More...
 
void CopyToTexture (Texture texture, const Containers::Image &data, Geometry::Bounds source, Geometry::Point target)
 Copies the data from the given image to the texture starting from specified boundary of the given target. More...
 
void CopyToTexture (Texture texture, const Containers::Image &data, Geometry::Point target)
 Copies the data from the given image to the texture starting from the given target. More...
 
void DestroyTexture (Texture texture)
 Destroys the given texture. More...
 
Texture GenerateEmptyTexture (const Geometry::Size &size, Graphics::ColorMode mode)
 This function generates a texture from the given image data. More...
 
Texture GenerateTexture (const Containers::Image &data)
 This function generates a texture from the given image data. More...
 
void RenderToScreen ()
 Stops rendering to a texture and start rendering to a buffer. More...
 
void RenderToTexture (FrameBuffer &buffer)
 Begins using the given frame buffer. More...
 
void Resize (const Geometry::Size &size)
 Resizes the active context. More...
 
void ResizeTexture (Texture texture, const Geometry::Size &size, Graphics::ColorMode mode)
 Resizes the given texture to the specified size. More...
 
void SetDefaultBlending ()
 Sets default blending parameters as current. More...
 
void SetDefaultClear ()
 Sets default clear parameters as current. More...
 
void SetupContext (const Geometry::Size &size)
 Performs first time initialization on GL context. More...
 
void UpdateTexture (Texture texture, const Containers::Image &data)
 Updates the given texture to contain the given data. More...
 

Variables

Gorgon::Utils::Logger log
 The logger that is used for GL operations. Default is unset and will not log anything. Use Initialize... to begin logging. More...