Colobot
|
Abstract graphics device - CDevice class and related structs/enums. More...
#include "graphics/core/color.h"
#include "graphics/core/texture.h"
#include "math/intpoint.h"
#include <memory>
#include <string>
Go to the source code of this file.
Classes | |
struct | Gfx::DeviceConfig |
General config for graphics device. More... | |
struct | Gfx::DeviceCapabilities |
This structs contains various capabilities of graphics device. More... | |
class | Gfx::CFrameBufferPixels |
class | Gfx::CDevice |
Abstract interface of graphics device. More... | |
Namespaces | |
Math | |
Namespace for (new) math code. | |
Gfx | |
Namespace for (new) graphics code. | |
Enumerations | |
enum | Gfx::TextureUnit { TEXTURE_PRIMARY = 0, TEXTURE_SECONDARY = 1, TEXTURE_SHADOW = 2 } |
Texture unit values for binding textures. More... | |
enum | Gfx::TransformType { TRANSFORM_WORLD, TRANSFORM_VIEW, TRANSFORM_PROJECTION, TRANSFORM_SHADOW } |
Type of transformation in rendering pipeline. More... | |
enum | Gfx::RenderState { RENDER_STATE_LIGHTING, RENDER_STATE_BLENDING, RENDER_STATE_FOG, RENDER_STATE_DEPTH_TEST, RENDER_STATE_DEPTH_WRITE, RENDER_STATE_ALPHA_TEST, RENDER_STATE_CULLING, RENDER_STATE_DEPTH_BIAS, RENDER_STATE_SHADOW_MAPPING } |
Render states that can be enabled/disabled. More... | |
enum | Gfx::RenderMode { RENDER_MODE_NORMAL, RENDER_MODE_INTERFACE, RENDER_MODE_SHADOW } |
Render modes the graphics device can be in. More... | |
enum | Gfx::CompFunc { COMP_FUNC_NEVER, COMP_FUNC_LESS, COMP_FUNC_EQUAL, COMP_FUNC_NOTEQUAL, COMP_FUNC_LEQUAL, COMP_FUNC_GREATER, COMP_FUNC_GEQUAL, COMP_FUNC_ALWAYS } |
Type of function used to compare values. More... | |
enum | Gfx::BlendFunc { BLEND_ZERO, BLEND_ONE, BLEND_SRC_COLOR, BLEND_INV_SRC_COLOR, BLEND_DST_COLOR, BLEND_INV_DST_COLOR, BLEND_SRC_ALPHA, BLEND_INV_SRC_ALPHA, BLEND_DST_ALPHA, BLEND_INV_DST_ALPHA, BLEND_SRC_ALPHA_SATURATE } |
Type of blending function. More... | |
enum | Gfx::FogMode { FOG_LINEAR, FOG_EXP, FOG_EXP2 } |
Type of fog calculation function. More... | |
enum | Gfx::CullMode { Gfx::CULL_CW, Gfx::CULL_CCW } |
Culling mode for polygons. More... | |
enum | Gfx::ShadeModel { SHADE_FLAT, SHADE_SMOOTH } |
Shade model used in rendering. More... | |
enum | Gfx::FillMode { Gfx::FILL_POINT, Gfx::FILL_LINES, Gfx::FILL_POLY } |
Polygon fill mode. More... | |
enum | Gfx::PrimitiveType { PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_LINE_STRIP, PRIMITIVE_TRIANGLES, PRIMITIVE_TRIANGLE_STRIP } |
Type of primitive to render. More... | |
enum | Gfx::FrustumPlane { FRUSTUM_PLANE_LEFT = 0x01, FRUSTUM_PLANE_RIGHT = 0x02, FRUSTUM_PLANE_TOP = 0x04, FRUSTUM_PLANE_BOTTOM = 0x08, FRUSTUM_PLANE_FRONT = 0x10, FRUSTUM_PLANE_BACK = 0x20, FRUSTUM_PLANE_ALL } |
Planes of frustum space. More... | |
enum | Gfx::RenderTarget { RENDER_TARGET_COLOR, RENDER_TARGET_DEPTH, RENDER_TARGET_STENCIL } |
Render targets for rendering to textures. More... | |
Abstract graphics device - CDevice class and related structs/enums.