29#include "Utils/CSingleton.h"
30#include "Graphics2D/SpriteFrame/CSpriteFrame.h"
31#include "Graphics2D/SpriteFrame/CGlyphFont.h"
32#include "Material/CMaterial.h"
60 class SKYLICHT_API CGraphics2D
71 std::vector<IMeshBuffer*> m_allBuffers;
74 std::vector<CCanvas*> m_canvas;
81 int m_vertexColorShader;
84 scene::SVertexBuffer* m_vertices;
89 virtual ~CGraphics2D();
99 void addCanvas(
CCanvas* canvas);
101 void removeCanvas(
CCanvas* canvas);
109 void prepareBuffer();
119 void flushWithMaterial(
CMaterial* material);
173 void beginDrawDepth();
177 void beginDepthTest();
195 void draw2DLines(
const std::vector<core::position2df>& points,
const SColor& color);
207 float measureCharWidth(
IFont* font,
wchar_t c);
225 void updateRectTexcoordBuffer(
227 const core::rectf& r,
float texWidth,
float texHeight,
This is an object class used to set up the camera, including its position, viewing angle,...
Definition CCamera.h:70
This class manages GUI components, including creating and deleting images and sprites.
Definition CCanvas.h:79
The object class describes material information such as which shader it's associated with,...
Definition CMaterial.h:84
Definition CIndexBuffer.h:15
Struct for holding a mesh with a single material.
Definition IMeshBuffer.h:42
Interface of a Video Driver dependent Texture.
Definition ITexture.h:119
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition IVideoDriver.h:388
Class representing a 32 bit ARGB color.
Definition SColor.h:285
Struct for holding parameters for a material renderer.
Definition SMaterial.h:255
#define DECLARE_SINGLETON(className)
Declare the standard singleton accessors for a class.
Definition CSingleton.h:36
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
CMatrix4< f32 > matrix4
Typedef for f32 matrix.
Definition matrix4.h:2241
dimension2d< u32 > dimension2du
Typedef for an unsigned integer dimension.
Definition dimension2d.h:212
rect< f32 > rectf
Rectangle with float values.
Definition rect.h:271
vector2d< f32 > position2df
Definition position2d.h:21
dimension2d< f32 > dimension2df
Typedef for an f32 dimension.
Definition dimension2d.h:210
Definition CSpriteFrame.h:93
Definition CSpriteFrame.h:69
Definition CSpriteFrame.h:47
standard vertex used by the Irrlicht engine.
Definition S3DVertex.h:55