Window and Input
The clan::DisplayWindow is the main class which creates a window on the screen. It is also the access point for receiving input and drawing onto the screen. Working with the window and handling input events are done with the following classes:
More information: Timing, User Input
2D Graphics
-
clan::Canvas - Main 2D drawing class
-
clan::Image - 2D image
-
clan::Sprite - More advanced version of a 2D image with multiple frames for animation
-
clan::Path2D - Describes a 2D path
-
clan::Shape2D - A complex 2D shape made out of paths
-
clan::Color, clan::Colorf - Specifies a color using red, green, blue and alpha components
-
clan::ColorHSLi, clan::ColorHSLf - Specifies a color using hue, saturation, lightness and alpha components
-
clan::ColorHSVi, clan::ColorHSVf - Specifies a color using hue, saturation, value and alpha components
-
clan::Gradient - Describes a linear gradient
-
clan::SpanLayout - Draw rich text with word wrapping, images, fonts and colors
-
clan::TextureGroup, clan::Subtexture - Calibrates which images end up in which atlas textures
More information: Sprite Resources, Collision Detection
Fonts
More information: Font Resource
Image Pixels
3D Graphics
-
clan::GraphicContext - Main immediate drawing class
-
clan::Texture - Texture object base class
-
clan::Texture1D, clan::Texture1DArray - One dimensional textures
-
clan::Texture2D, clan::Texture2DArray - Two dimensional textures
-
clan::Texture3D - Three dimensional textures
-
clan::TextureCube, clan::TextureCubeArray - Cube textures
-
clan::UniformBuffer, clan::UniformVector<T> - GPU buffer for uniform variables
-
clan::VertexArrayBuffer, clan::VertexArrayVector<T> - GPU buffer for vertex attributes
-
clan::ElementArrayBuffer, clan::ElementArrayVector<T> - GPU buffer for element indices
-
clan::StorageBuffer, clan::StorageVector<T> - GPU buffer for shader storage (aka. Unordered Access View)
-
clan::TransferBuffer, clan::TransferTexture, clan::TransferVector - CPU/GPU memory transfer buffers
-
clan::BlendState, clan::BlendStateDescription - Blending state setup
-
clan::DepthStencilState, clan::DepthStencilStateDescription - Depth and stencil state setup
-
clan::RasterizerState, clan::RasterizerStateDescription - Rasterizer state setup
-
clan::FrameBuffer, clan::RenderBuffer - Frame buffer setup
-
clan::ProgramObject, clan::ShaderObject - Shader programs
-
clan::PrimitivesArray - Vertex buffer objects
-
clan::OcclusionQuery - Occlusion queries
-
clan::RenderBatcher - Interface for participating in render batching
More information: Texture Resource
Shader Effects
Resources