21#include "gl_headers.hpp"
23#include <EPrimitiveTypes.h>
29#include <SVertexIndex.h>
33void draw2DImageFromRTT(GLuint texture,
size_t texture_w,
size_t texture_h,
34 const irr::core::rect<irr::s32>& destRect,
35 const irr::core::rect<irr::s32>& sourceRect,
36 const irr::core::rect<irr::s32>* clipRect,
37 const irr::video::SColor &colors,
38 bool useAlphaChannelOfTexture);
40void draw2DImage(
const irr::video::ITexture* texture,
41 const irr::core::rect<irr::s32>& destRect,
42 const irr::core::rect<irr::s32>& sourceRect,
43 const irr::core::rect<irr::s32>* clipRect,
44 const irr::video::SColor &color,
45 bool useAlphaChannelOfTexture);
47void draw2DImage(
const irr::video::ITexture* texture,
48 const irr::core::rect<irr::s32>& destRect,
49 const irr::core::rect<irr::s32>& sourceRect,
50 const irr::core::rect<irr::s32>* clipRect,
51 const irr::video::SColor*
const colors,
52 bool useAlphaChannelOfTexture);
54void draw2DImageRotationColor(irr::video::ITexture* texture,
55 const irr::core::rect<irr::s32>& destRect,
56 const irr::core::rect<irr::s32>& sourceRect,
57 const irr::core::rect<irr::s32>* clipRect,
58 float rotation,
const irr::video::SColor& color);
60void draw2DVertexPrimitiveList(irr::video::ITexture *t,
const void* vertices,
61 irr::u32 vertexCount,
const void* indexList,
62 irr::u32 primitiveCount,
63 irr::video::E_VERTEX_TYPE vType = irr::video::EVT_STANDARD,
64 irr::scene::E_PRIMITIVE_TYPE pType = irr::scene::EPT_TRIANGLES,
65 irr::video::E_INDEX_TYPE iType = irr::video::EIT_16BIT );
67void GL32_draw2DRectangle(irr::video::SColor color,
68 const irr::core::rect<irr::s32>& position,
69 const irr::core::rect<irr::s32>* clip = 0);