Mountain
1.0.0
Simple C++ 2D Game Framework
|
Low-level graphics API. More...
Classes | |
struct | GpuBuffer |
Low-level interface for OpenGL buffers. More... | |
struct | GpuTexture |
Low-level interface for OpenGL textures. More... | |
struct | GpuVertexArray |
Low-level interface for OpenGL vertex arrays. More... | |
Functions | |
MOUNTAIN_API void | BindImage (uint32_t textureId, uint32_t shaderBinding, ImageShaderAccess access) |
MOUNTAIN_API void | SetActiveTexture (uint8_t activeTexture) |
MOUNTAIN_API void | SynchronizeGpuData (Meta::Flags< GpuDataSynchronizationFlags > flags=Utils::ToFlags(GpuDataSynchronizationFlags::None)) |
MOUNTAIN_API void | MemoryBarrier (Meta::Flags< MemoryBarrierFlags > flags=Utils::ToFlags(MemoryBarrierFlags::None)) |
MOUNTAIN_API void | DrawArrays (DrawMode mode, int32_t first, int32_t count) |
MOUNTAIN_API void | DrawArraysInstanced (DrawMode mode, int32_t first, int32_t count, int32_t instanceCount) |
MOUNTAIN_API void | DrawElements (DrawMode mode, int32_t count, DataType type, const void *indices) |
MOUNTAIN_API void | DrawElementsInstanced (DrawMode mode, int32_t count, DataType type, const void *indices, int32_t instanceCount) |
MOUNTAIN_API void | SetClearColor (const Color &newClearColor) |
MOUNTAIN_API void | Clear (ClearFlags flags) |
MOUNTAIN_API void | BindTexture (uint32_t textureId) |
MOUNTAIN_API void | BindTexture (GpuTexture gpuTexture) |
MOUNTAIN_API void | BindBuffer (BufferType type, uint32_t bufferId) |
MOUNTAIN_API void | BindBuffer (BufferType type, GpuBuffer gpuBuffer) |
MOUNTAIN_API void | BindBufferBase (BufferType type, uint32_t index, GpuBuffer gpuBuffer) |
MOUNTAIN_API void | BindBufferBase (BufferType type, uint32_t index, uint32_t bufferId) |
MOUNTAIN_API void | BindVertexArray (uint32_t vertexArrayId) |
MOUNTAIN_API void | BindVertexArray (GpuVertexArray gpuVertexArray) |
MOUNTAIN_API void | SetVertexAttribute (uint32_t index, int32_t size, int32_t stride, size_t offset, uint32_t divisor=0) |
MOUNTAIN_API void | SetVertexAttributeInt (uint32_t index, int32_t size, int32_t stride, size_t offset, uint32_t divisor=0) |
MOUNTAIN_API void | BindFramebuffer (FramebufferType type, uint32_t framebuffer) |
MOUNTAIN_API uint32_t | GetLastError () |
MOUNTAIN_API const char_t * | GetLastErrorString () |
MOUNTAIN_API bool_t | IsConstantEnabled (Constant constant) |
MOUNTAIN_API bool_t | IsConstantEnabled (Constant constant, uint32_t index) |
MOUNTAIN_API void | GetConstant (Constant constant, bool_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, double_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, float_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, int32_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, int64_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, uint32_t index, bool_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, uint32_t index, double_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, uint32_t index, float_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, uint32_t index, int32_t *outData) |
MOUNTAIN_API void | GetConstant (Constant constant, uint32_t index, int64_t *outData) |
MOUNTAIN_API void | SetConstantEnabled (Constant constant, bool_t enabled) |
MOUNTAIN_API void | SetConstantEnabled (Constant constant, uint32_t index, bool_t enabled) |
MOUNTAIN_API void | EnableConstant (Constant constant) |
MOUNTAIN_API void | EnableConstant (Constant constant, uint32_t index) |
MOUNTAIN_API void | DisableConstant (Constant constant) |
MOUNTAIN_API void | DisableConstant (Constant constant, uint32_t index) |
MOUNTAIN_API void | SetBlendFunction (BlendFunction sourceFactors, BlendFunction destinationFactors) |
MOUNTAIN_API void | SetBlendFunction (uint32_t drawBuffer, BlendFunction sourceFactors, BlendFunction destinationFactors) |
MOUNTAIN_API void | SetViewport (int32_t x, int32_t y, int32_t width, int32_t height) |
template<OpenGlConvertibleT T> | |
T | FromOpenGl (int32_t value) |
template<> | |
MOUNTAIN_API MagnificationFilter | FromOpenGl< MagnificationFilter > (int32_t value) |
template<> | |
MOUNTAIN_API Wrapping | FromOpenGl< Wrapping > (int32_t value) |
template<> | |
MOUNTAIN_API ShaderType | FromOpenGl< ShaderType > (int32_t value) |
template<> | |
MOUNTAIN_API InternalFormat | FromOpenGl< InternalFormat > (int32_t value) |
template<> | |
MOUNTAIN_API Format | FromOpenGl< Format > (int32_t value) |
template<> | |
MOUNTAIN_API DataType | FromOpenGl< DataType > (int32_t value) |
template<> | |
MOUNTAIN_API Constant | FromOpenGl< Constant > (int32_t value) |
template<> | |
MOUNTAIN_API BufferType | FromOpenGl< BufferType > (int32_t value) |
template<> | |
MOUNTAIN_API BufferUsage | FromOpenGl< BufferUsage > (int32_t value) |
template<> | |
MOUNTAIN_API DrawMode | FromOpenGl< DrawMode > (int32_t value) |
template<> | |
MOUNTAIN_API BlendFunction | FromOpenGl< BlendFunction > (int32_t value) |
template<> | |
MOUNTAIN_API FramebufferType | FromOpenGl< FramebufferType > (int32_t value) |
MOUNTAIN_API int32_t | ToOpenGl (MagnificationFilter value) |
MOUNTAIN_API int32_t | ToOpenGl (Wrapping value) |
MOUNTAIN_API int32_t | ToOpenGl (ShaderType value) |
MOUNTAIN_API int32_t | ToOpenGl (InternalFormat value) |
MOUNTAIN_API int32_t | ToOpenGl (Format value) |
MOUNTAIN_API int32_t | ToOpenGl (DataType value) |
MOUNTAIN_API int32_t | ToOpenGl (Constant value) |
MOUNTAIN_API int32_t | ToOpenGl (BufferType value) |
MOUNTAIN_API int32_t | ToOpenGl (BufferUsage value) |
MOUNTAIN_API int32_t | ToOpenGl (DrawMode value) |
MOUNTAIN_API int32_t | ToOpenGl (BlendFunction value) |
MOUNTAIN_API int32_t | ToOpenGl (FramebufferType value) |
Variables | |
template<typename T > | |
concept | OpenGlConvertibleT |
Low-level graphics API.
You should only use this if you know what you are doing and/or have experience with graphics APIs such as OpenGL.
concept Mountain::Graphics::OpenGlConvertibleT |
Definition at line 637 of file graphics.hpp.