Irrlicht 3D Engine
IVideoDriver.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __IRR_I_VIDEO_DRIVER_H_INCLUDED__
6 #define __IRR_I_VIDEO_DRIVER_H_INCLUDED__
7 
8 #include "rect.h"
9 #include "SColor.h"
10 #include "ITexture.h"
11 #include "irrArray.h"
12 #include "matrix4.h"
13 #include "plane3d.h"
14 #include "dimension2d.h"
15 #include "position2d.h"
16 #include "SMaterial.h"
17 #include "IMeshBuffer.h"
18 #include "triangle3d.h"
19 #include "EDriverTypes.h"
20 #include "EDriverFeatures.h"
21 #include "SExposedVideoData.h"
22 
23 namespace irr
24 {
25 namespace io
26 {
27  class IAttributes;
28  struct SAttributeReadWriteOptions;
29  class IReadFile;
30  class IWriteFile;
31 } // end namespace io
32 namespace scene
33 {
34  class IMeshBuffer;
35  class IMesh;
36  class IMeshManipulator;
37  class ISceneNode;
38 } // end namespace scene
39 
40 namespace video
41 {
42  struct S3DVertex;
43  struct S3DVertex2TCoords;
44  struct S3DVertexTangents;
45  struct SLight;
46  class IImageLoader;
47  class IImageWriter;
48  class IMaterialRenderer;
49  class IGPUProgrammingServices;
50 
53  {
55  ETS_VIEW = 0,
68 #if _IRR_MATERIAL_MAX_TEXTURES_>4
70  ETS_TEXTURE_4,
71 #if _IRR_MATERIAL_MAX_TEXTURES_>5
73  ETS_TEXTURE_5,
74 #if _IRR_MATERIAL_MAX_TEXTURES_>6
76  ETS_TEXTURE_6,
77 #if _IRR_MATERIAL_MAX_TEXTURES_>7
79  ETS_TEXTURE_7,
80 #endif
81 #endif
82 #endif
83 #endif
85  ETS_COUNT
86  };
87 
89 
93  {
99  ELR_RTTS = 4,
101  ELR_HW_BUFFERS = 8
102  };
103 
105 
107  {
130  };
131 
134  {
138  };
139 
140  const c8* const FogTypeNames[] =
141  {
142  "FogExp",
143  "FogLinear",
144  "FogExp2",
145  0
146  };
147 
149  {
153 
156 
159 
161  bool Enabled;
162 
165 
167  void apply(SMaterial& material)
168  {
169  if (Enabled)
170  {
171  for (u32 i=0; i<32; ++i)
172  {
173  const u32 num=(1<<i);
174  if (EnableFlags & num)
175  {
176  switch (num)
177  {
178  case EMF_WIREFRAME: material.Wireframe = Material.Wireframe; break;
179  case EMF_POINTCLOUD: material.PointCloud = Material.PointCloud; break;
181  case EMF_LIGHTING: material.Lighting = Material.Lighting; break;
182  case EMF_ZBUFFER: material.ZBuffer = Material.ZBuffer; break;
183  case EMF_ZWRITE_ENABLE: material.ZWriteEnable = Material.ZWriteEnable; break;
189  case EMF_FOG_ENABLE: material.FogEnable = Material.FogEnable; break;
191  case EMF_TEXTURE_WRAP:
194  break;
195  case EMF_ANTI_ALIASING: material.AntiAliasing = Material.AntiAliasing; break;
196  case EMF_COLOR_MASK: material.ColorMask = Material.ColorMask; break;
197  case EMF_COLOR_MATERIAL: material.ColorMaterial = Material.ColorMaterial; break;
198  case EMF_USE_MIP_MAPS: material.UseMipMaps = Material.UseMipMaps; break;
200  case EMF_POLYGON_OFFSET:
203  }
204  }
205  }
206  }
207  }
208 
209  };
210 
212  {
214  E_COLOR_PLANE colorMask=ECP_ALL,
215  E_BLEND_FACTOR blendFuncSrc=EBF_ONE,
217  E_BLEND_OPERATION blendOp=EBO_NONE) :
218  RenderTexture(texture),
220  BlendFuncSrc(blendFuncSrc), BlendFuncDst(blendFuncDst),
221  BlendOp(blendOp) {}
223  E_COLOR_PLANE colorMask=ECP_ALL,
224  E_BLEND_FACTOR blendFuncSrc=EBF_ONE,
226  E_BLEND_OPERATION blendOp=EBO_NONE) :
227  RenderTexture(0),
228  TargetType(target), ColorMask(colorMask),
229  BlendFuncSrc(blendFuncSrc), BlendFuncDst(blendFuncDst),
230  BlendOp(blendOp) {}
231  bool operator!=(const IRenderTarget& other) const
232  {
233  return ((RenderTexture != other.RenderTexture) ||
234  (TargetType != other.TargetType) ||
235  (ColorMask != other.ColorMask) ||
236  (BlendFuncSrc != other.BlendFuncSrc) ||
237  (BlendFuncDst != other.BlendFuncDst) ||
238  (BlendOp != other.BlendOp));
239  }
246  };
247 
249 
256  class IVideoDriver : public virtual IReferenceCounted
257  {
258  public:
259 
261 
278  virtual bool beginScene(bool backBuffer=true, bool zBuffer=true,
279  SColor color=SColor(255,0,0,0),
280  const SExposedVideoData& videoData=SExposedVideoData(),
281  core::rect<s32>* sourceRect=0) =0;
282 
284 
287  virtual bool endScene() =0;
288 
290 
293  virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const =0;
294 
296 
300  virtual void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true) =0;
301 
303 
319  virtual const io::IAttributes& getDriverAttributes() const=0;
320 
322 
325  virtual bool checkDriverReset() =0;
326 
328 
331  virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4& mat) =0;
332 
334 
336  virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const =0;
337 
339 
340  virtual u32 getImageLoaderCount() const = 0;
341 
343 
346  virtual IImageLoader* getImageLoader(u32 n) = 0;
347 
349 
350  virtual u32 getImageWriterCount() const = 0;
351 
353 
356  virtual IImageWriter* getImageWriter(u32 n) = 0;
357 
359 
361  virtual void setMaterial(const SMaterial& material) =0;
362 
364 
373  virtual ITexture* getTexture(const io::path& filename) = 0;
374 
376 
385  virtual ITexture* getTexture(io::IReadFile* file) =0;
386 
388 
394  virtual ITexture* getTextureByIndex(u32 index) =0;
395 
397 
398  virtual u32 getTextureCount() const = 0;
399 
401 
403  virtual void renameTexture(ITexture* texture, const io::path& newName) = 0;
404 
406 
416  const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) = 0;
417 
419 
429  virtual ITexture* addTexture(const io::path& name, IImage* image, void* mipmapData=0) = 0;
430 
432 
442  const io::path& name = "rt", const ECOLOR_FORMAT format = ECF_UNKNOWN) =0;
443 
445 
452  virtual void removeTexture(ITexture* texture) =0;
453 
455 
461  virtual void removeAllTextures() =0;
462 
464  virtual void removeHardwareBuffer(const scene::IMeshBuffer* mb) =0;
465 
467  virtual void removeAllHardwareBuffers() =0;
468 
470 
472  const scene::IMesh* mesh=0) =0;
473 
475  virtual void removeOcclusionQuery(scene::ISceneNode* node) =0;
476 
478  virtual void removeAllOcclusionQueries() =0;
479 
481 
483  virtual void runOcclusionQuery(scene::ISceneNode* node, bool visible=false) =0;
484 
486 
488  virtual void runAllOcclusionQueries(bool visible=false) =0;
489 
491 
493  virtual void updateOcclusionQuery(scene::ISceneNode* node, bool block=true) =0;
494 
496 
498  virtual void updateAllOcclusionQueries(bool block=true) =0;
499 
501 
505 
507 
523  virtual void makeColorKeyTexture(video::ITexture* texture,
524  video::SColor color,
525  bool zeroTexels = false) const =0;
526 
528 
540  virtual void makeColorKeyTexture(video::ITexture* texture,
541  core::position2d<s32> colorKeyPixelPos,
542  bool zeroTexels = false) const =0;
543 
545 
552  virtual void makeNormalMapTexture(video::ITexture* texture, f32 amplitude=1.0f) const =0;
553 
555 
586  virtual bool setRenderTarget(video::ITexture* texture,
587  bool clearBackBuffer=true, bool clearZBuffer=true,
588  SColor color=video::SColor(0,0,0,0)) =0;
589 
591 
602  virtual bool setRenderTarget(E_RENDER_TARGET target, bool clearTarget=true,
603  bool clearZBuffer=true,
604  SColor color=video::SColor(0,0,0,0)) =0;
605 
608  bool clearBackBuffer=true, bool clearZBuffer=true,
609  SColor color=video::SColor(0,0,0,0)) =0;
610 
612 
615  virtual void setViewPort(const core::rect<s32>& area) =0;
616 
618 
619  virtual const core::rect<s32>& getViewPort() const =0;
620 
622 
636  virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,
637  const void* indexList, u32 primCount,
640  E_INDEX_TYPE iType=EIT_16BIT) =0;
641 
643 
662  virtual void draw2DVertexPrimitiveList(const void* vertices, u32 vertexCount,
663  const void* indexList, u32 primCount,
666  E_INDEX_TYPE iType=EIT_16BIT) =0;
667 
669 
677  void drawIndexedTriangleList(const S3DVertex* vertices,
678  u32 vertexCount, const u16* indexList, u32 triangleCount)
679  {
680  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_STANDARD, scene::EPT_TRIANGLES, EIT_16BIT);
681  }
682 
684 
693  u32 vertexCount, const u16* indexList, u32 triangleCount)
694  {
695  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_2TCOORDS, scene::EPT_TRIANGLES, EIT_16BIT);
696  }
697 
699 
708  u32 vertexCount, const u16* indexList, u32 triangleCount)
709  {
710  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_TANGENTS, scene::EPT_TRIANGLES, EIT_16BIT);
711  }
712 
714 
722  void drawIndexedTriangleFan(const S3DVertex* vertices,
723  u32 vertexCount, const u16* indexList, u32 triangleCount)
724  {
725  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_STANDARD, scene::EPT_TRIANGLE_FAN, EIT_16BIT);
726  }
727 
729 
738  u32 vertexCount, const u16* indexList, u32 triangleCount)
739  {
740  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_2TCOORDS, scene::EPT_TRIANGLE_FAN, EIT_16BIT);
741  }
742 
744 
753  u32 vertexCount, const u16* indexList, u32 triangleCount)
754  {
755  drawVertexPrimitiveList(vertices, vertexCount, indexList, triangleCount, EVT_TANGENTS, scene::EPT_TRIANGLE_FAN, EIT_16BIT);
756  }
757 
759 
773  virtual void draw3DLine(const core::vector3df& start,
774  const core::vector3df& end, SColor color = SColor(255,255,255,255)) =0;
775 
777 
790  virtual void draw3DTriangle(const core::triangle3df& triangle,
791  SColor color = SColor(255,255,255,255)) =0;
792 
794 
805  virtual void draw3DBox(const core::aabbox3d<f32>& box,
806  SColor color = SColor(255,255,255,255)) =0;
807 
809 
812  virtual void draw2DImage(const video::ITexture* texture,
813  const core::position2d<s32>& destPos) =0;
814 
816 
831  virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& destPos,
832  const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect =0,
833  SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false) =0;
834 
836 
855  virtual void draw2DImageBatch(const video::ITexture* texture,
856  const core::position2d<s32>& pos,
857  const core::array<core::rect<s32> >& sourceRects,
858  const core::array<s32>& indices,
859  s32 kerningWidth=0,
860  const core::rect<s32>* clipRect=0,
861  SColor color=SColor(255,255,255,255),
862  bool useAlphaChannelOfTexture=false) =0;
863 
865 
880  virtual void draw2DImageBatch(const video::ITexture* texture,
881  const core::array<core::position2d<s32> >& positions,
882  const core::array<core::rect<s32> >& sourceRects,
883  const core::rect<s32>* clipRect=0,
884  SColor color=SColor(255,255,255,255),
885  bool useAlphaChannelOfTexture=false) =0;
886 
888 
897  virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,
898  const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect =0,
899  const video::SColor * const colors=0, bool useAlphaChannelOfTexture=false) =0;
900 
902 
909  virtual void draw2DRectangle(SColor color, const core::rect<s32>& pos,
910  const core::rect<s32>* clip =0) =0;
911 
913 
929  virtual void draw2DRectangle(const core::rect<s32>& pos,
930  SColor colorLeftUp, SColor colorRightUp,
931  SColor colorLeftDown, SColor colorRightDown,
932  const core::rect<s32>* clip =0) =0;
933 
935 
938  virtual void draw2DRectangleOutline(const core::recti& pos,
939  SColor color=SColor(255,255,255,255)) =0;
940 
942 
947  virtual void draw2DLine(const core::position2d<s32>& start,
948  const core::position2d<s32>& end,
949  SColor color=SColor(255,255,255,255)) =0;
950 
952 
955  virtual void drawPixel(u32 x, u32 y, const SColor& color) =0;
956 
958 
970  virtual void draw2DPolygon(core::position2d<s32> center,
971  f32 radius,
972  video::SColor color=SColor(100,255,255,255),
973  s32 vertexCount=10) =0;
974 
976 
989  virtual void drawStencilShadowVolume(const core::array<core::vector3df>& triangles, bool zfail=true, u32 debugDataVisible=0) =0;
990 
992 
1011  virtual void drawStencilShadow(bool clearStencilBuffer=false,
1012  video::SColor leftUpEdge = video::SColor(255,0,0,0),
1013  video::SColor rightUpEdge = video::SColor(255,0,0,0),
1014  video::SColor leftDownEdge = video::SColor(255,0,0,0),
1015  video::SColor rightDownEdge = video::SColor(255,0,0,0)) =0;
1016 
1018 
1019  virtual void drawMeshBuffer(const scene::IMeshBuffer* mb) =0;
1020 
1022 
1026  virtual void drawMeshBufferNormals(const scene::IMeshBuffer* mb, f32 length=10.f, SColor color=0xffffffff) =0;
1027 
1029 
1045  virtual void setFog(SColor color=SColor(0,255,255,255),
1046  E_FOG_TYPE fogType=EFT_FOG_LINEAR,
1047  f32 start=50.0f, f32 end=100.0f, f32 density=0.01f,
1048  bool pixelFog=false, bool rangeFog=false) =0;
1049 
1051  virtual void getFog(SColor& color, E_FOG_TYPE& fogType,
1052  f32& start, f32& end, f32& density,
1053  bool& pixelFog, bool& rangeFog) = 0;
1054 
1056 
1057  virtual ECOLOR_FORMAT getColorFormat() const =0;
1058 
1060 
1061  virtual const core::dimension2d<u32>& getScreenSize() const =0;
1062 
1064 
1069 
1071 
1076  virtual s32 getFPS() const =0;
1077 
1079 
1083  virtual u32 getPrimitiveCountDrawn( u32 mode =0 ) const =0;
1084 
1086  virtual void deleteAllDynamicLights() =0;
1087 
1091  virtual s32 addDynamicLight(const SLight& light) =0;
1092 
1094 
1095  virtual u32 getMaximalDynamicLightAmount() const =0;
1096 
1098 
1099  virtual u32 getDynamicLightCount() const =0;
1100 
1102 
1105  virtual const SLight& getDynamicLight(u32 idx) const =0;
1106 
1110  virtual void turnLightOn(s32 lightIndex, bool turnOn) =0;
1111 
1113 
1115  virtual const wchar_t* getName() const =0;
1116 
1118 
1124  virtual void addExternalImageLoader(IImageLoader* loader) =0;
1125 
1127 
1133  virtual void addExternalImageWriter(IImageWriter* writer) =0;
1134 
1136 
1139  virtual u32 getMaximalPrimitiveCount() const =0;
1140 
1142 
1151  virtual void setTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag, bool enabled=true) =0;
1152 
1154 
1158 
1160 
1168  virtual IImage* createImageFromFile(const io::path& filename) = 0;
1169 
1171 
1179 
1181 
1188  virtual bool writeImageToFile(IImage* image, const io::path& filename, u32 param = 0) = 0;
1189 
1191 
1199  virtual bool writeImageToFile(IImage* image, io::IWriteFile* file, u32 param =0) =0;
1200 
1202 
1217  const core::dimension2d<u32>& size, void *data,
1218  bool ownForeignMemory=false,
1219  bool deleteMemory = true) =0;
1220 
1222 
1228  virtual IImage* createImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size) =0;
1229 
1231 
1237  _IRR_DEPRECATED_ virtual IImage* createImage(ECOLOR_FORMAT format, IImage *imageToCopy) =0;
1238 
1240 
1248  const core::position2d<s32>& pos,
1249  const core::dimension2d<u32>& size) =0;
1250 
1252 
1259  virtual IImage* createImage(ITexture* texture,
1260  const core::position2d<s32>& pos,
1261  const core::dimension2d<u32>& size) =0;
1262 
1264 
1266  virtual void OnResize(const core::dimension2d<u32>& size) =0;
1267 
1269 
1289  virtual s32 addMaterialRenderer(IMaterialRenderer* renderer, const c8* name =0) =0;
1290 
1292 
1297 
1299 
1300  virtual u32 getMaterialRendererCount() const =0;
1301 
1303 
1312  virtual const c8* getMaterialRendererName(u32 idx) const =0;
1313 
1315 
1320  virtual void setMaterialRendererName(s32 idx, const c8* name) =0;
1321 
1323 
1333  io::SAttributeReadWriteOptions* options=0) =0;
1334 
1336 
1342  virtual void fillMaterialStructureFromAttributes(video::SMaterial& outMaterial, io::IAttributes* attributes) =0;
1343 
1345 
1349 
1351 
1352  virtual E_DRIVER_TYPE getDriverType() const =0;
1353 
1355 
1359 
1362 
1364 
1370  virtual void clearZBuffer() =0;
1371 
1373 
1375 
1377 
1381  virtual video::ITexture* findTexture(const io::path& filename) = 0;
1382 
1384 
1392  virtual bool setClipPlane(u32 index, const core::plane3df& plane, bool enable=false) =0;
1393 
1395 
1401  virtual void enableClipPlane(u32 index, bool enable) =0;
1402 
1404 
1405  virtual void setMinHardwareBufferVertexCount(u32 count) =0;
1406 
1408 
1413 
1415 
1428  virtual SMaterial& getMaterial2D() =0;
1429 
1431 
1433  virtual void enableMaterial2D(bool enable=true) =0;
1434 
1437 
1439 
1442  virtual void setAmbientLight(const SColorf& color) =0;
1443 
1445 
1448  virtual void setAllowZWriteOnTransparent(bool flag) =0;
1449 
1452 
1454 
1463  virtual void convertColor(const void* sP, ECOLOR_FORMAT sF, s32 sN,
1464  void* dP, ECOLOR_FORMAT dF) const =0;
1465  };
1466 
1467 } // end namespace video
1468 } // end namespace irr
1469 
1470 
1471 #endif
Base class of most objects of the Irrlicht Engine.
4x4 matrix. Mostly used as transformation matrix for 3d calculations.
Definition: matrix4.h:46
Self reallocating template array (like stl vector) with additional features.
Definition: irrArray.h:23
3d triangle template class for doing collision detection and other things.
Definition: triangle3d.h:21
3d vector template class with lots of operators and methods.
Definition: vector3d.h:23
Provides a generic interface for attributes and their values and the possiblity to serialize them.
Definition: IAttributes.h:42
Interface providing read acess to a file.
Definition: IReadFile.h:18
Interface providing write access to a file.
Definition: IWriteFile.h:18
Struct for holding a mesh with a single material.
Definition: IMeshBuffer.h:40
Class which holds the geometry of an object.
Definition: IMesh.h:24
An interface for easy manipulation of meshes.
Scene node interface.
Definition: ISceneNode.h:41
Interface making it possible to create and use programs running on the GPU.
Interface for software image data.
Definition: IImage.h:23
Class which is able to create a image from a file.
Definition: IImageLoader.h:27
Interface for writing software image data.
Definition: IImageWriter.h:26
Interface for material rendering.
Interface of a Video Driver dependent Texture.
Definition: ITexture.h:99
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition: IVideoDriver.h:257
virtual bool beginScene(bool backBuffer=true, bool zBuffer=true, SColor color=SColor(255, 0, 0, 0), const SExposedVideoData &videoData=SExposedVideoData(), core::rect< s32 > *sourceRect=0)=0
Applications must call this method before performing any rendering.
void drawIndexedTriangleList(const S3DVertex2TCoords *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle list.
Definition: IVideoDriver.h:692
virtual void addOcclusionQuery(scene::ISceneNode *node, const scene::IMesh *mesh=0)=0
Create occlusion query.
void drawIndexedTriangleList(const S3DVertexTangents *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle list.
Definition: IVideoDriver.h:707
virtual s32 addMaterialRenderer(IMaterialRenderer *renderer, const c8 *name=0)=0
Adds a new material renderer to the video device.
virtual void removeHardwareBuffer(const scene::IMeshBuffer *mb)=0
Remove hardware buffer.
virtual u32 getOcclusionQueryResult(scene::ISceneNode *node) const =0
Return query result.
virtual void draw2DImage(const video::ITexture *texture, const core::position2d< s32 > &destPos, const core::rect< s32 > &sourceRect, const core::rect< s32 > *clipRect=0, SColor color=SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture=false)=0
Draws a 2d image using a color.
virtual u32 getImageWriterCount() const =0
Retrieve the number of image writers.
virtual void removeAllTextures()=0
Removes all textures from the texture cache and deletes them.
virtual SMaterial & getMaterial2D()=0
Get the 2d override material for altering its values.
virtual void OnResize(const core::dimension2d< u32 > &size)=0
Event handler for resize events. Only used by the engine internally.
virtual void draw2DImageBatch(const video::ITexture *texture, const core::position2d< s32 > &pos, const core::array< core::rect< s32 > > &sourceRects, const core::array< s32 > &indices, s32 kerningWidth=0, const core::rect< s32 > *clipRect=0, SColor color=SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture=false)=0
Draws a set of 2d images, using a color and the alpha channel of the texture.
virtual void drawMeshBufferNormals(const scene::IMeshBuffer *mb, f32 length=10.f, SColor color=0xffffffff)=0
Draws normals of a mesh buffer.
virtual bool setRenderTarget(const core::array< video::IRenderTarget > &texture, bool clearBackBuffer=true, bool clearZBuffer=true, SColor color=video::SColor(0, 0, 0, 0))=0
Sets new multiple render targets.
virtual void clearZBuffer()=0
Clears the ZBuffer.
virtual core::stringc getVendorInfo()=0
Get the graphics card vendor name.
virtual void removeAllHardwareBuffers()=0
Remove all hardware buffers.
virtual void getFog(SColor &color, E_FOG_TYPE &fogType, f32 &start, f32 &end, f32 &density, bool &pixelFog, bool &rangeFog)=0
Gets the fog mode.
virtual const io::IAttributes & getDriverAttributes() const =0
Get attributes of the actual video driver.
virtual u32 getPrimitiveCountDrawn(u32 mode=0) const =0
Returns amount of primitives (mostly triangles) which were drawn in the last frame.
virtual void renameTexture(ITexture *texture, const io::path &newName)=0
Renames a texture.
virtual IImage * createImageFromFile(io::IReadFile *file)=0
Creates a software image from a file.
virtual void draw2DVertexPrimitiveList(const void *vertices, u32 vertexCount, const void *indexList, u32 primCount, E_VERTEX_TYPE vType=EVT_STANDARD, scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES, E_INDEX_TYPE iType=EIT_16BIT)=0
Draws a vertex primitive list in 2d.
virtual IImage * createImage(ITexture *texture, const core::position2d< s32 > &pos, const core::dimension2d< u32 > &size)=0
Creates a software image from a part of a texture.
virtual void turnLightOn(s32 lightIndex, bool turnOn)=0
virtual bool writeImageToFile(IImage *image, const io::path &filename, u32 param=0)=0
Writes the provided image to a file.
virtual IImage * createImageFromData(ECOLOR_FORMAT format, const core::dimension2d< u32 > &size, void *data, bool ownForeignMemory=false, bool deleteMemory=true)=0
Creates a software image from a byte array.
virtual void draw2DImage(const video::ITexture *texture, const core::rect< s32 > &destRect, const core::rect< s32 > &sourceRect, const core::rect< s32 > *clipRect=0, const video::SColor *const colors=0, bool useAlphaChannelOfTexture=false)=0
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used...
virtual bool checkDriverReset()=0
Check if the driver was recently reset.
virtual u32 getTextureCount() const =0
Returns amount of textures currently loaded.
virtual io::IAttributes * createAttributesFromMaterial(const video::SMaterial &material, io::SAttributeReadWriteOptions *options=0)=0
Creates material attributes list from a material.
virtual void setMaterialRendererName(s32 idx, const c8 *name)=0
Sets the name of a material renderer.
virtual const SExposedVideoData & getExposedVideoData()=0
Returns driver and operating system specific data about the IVideoDriver.
virtual IImage * createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER)=0
Make a screenshot of the last rendered frame.
void drawIndexedTriangleList(const S3DVertex *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle list.
Definition: IVideoDriver.h:677
virtual void addExternalImageWriter(IImageWriter *writer)=0
Adds an external image writer to the engine.
virtual s32 getFPS() const =0
Returns current frames per second value.
virtual IImageLoader * getImageLoader(u32 n)=0
Retrieve the given image loader.
virtual void removeAllOcclusionQueries()=0
Remove all occlusion queries.
virtual void draw3DLine(const core::vector3df &start, const core::vector3df &end, SColor color=SColor(255, 255, 255, 255))=0
Draws a 3d line.
virtual void updateOcclusionQuery(scene::ISceneNode *node, bool block=true)=0
Update occlusion query. Retrieves results from GPU.
virtual void makeNormalMapTexture(video::ITexture *texture, f32 amplitude=1.0f) const =0
Creates a normal map from a height map texture.
virtual void draw2DImageBatch(const video::ITexture *texture, const core::array< core::position2d< s32 > > &positions, const core::array< core::rect< s32 > > &sourceRects, const core::rect< s32 > *clipRect=0, SColor color=SColor(255, 255, 255, 255), bool useAlphaChannelOfTexture=false)=0
Draws a set of 2d images, using a color and the alpha channel of the texture.
virtual void drawPixel(u32 x, u32 y, const SColor &color)=0
Draws a pixel.
virtual void draw2DRectangleOutline(const core::recti &pos, SColor color=SColor(255, 255, 255, 255))=0
Draws the outline of a 2D rectangle.
virtual void makeColorKeyTexture(video::ITexture *texture, video::SColor color, bool zeroTexels=false) const =0
Sets a boolean alpha channel on the texture based on a color key.
virtual bool endScene()=0
Presents the rendered image to the screen.
virtual void enableMaterial2D(bool enable=true)=0
Enable the 2d override material.
virtual const core::dimension2d< u32 > & getCurrentRenderTargetSize() const =0
Get the size of the current render target.
virtual void draw3DBox(const core::aabbox3d< f32 > &box, SColor color=SColor(255, 255, 255, 255))=0
Draws a 3d axis aligned box.
virtual void setMinHardwareBufferVertexCount(u32 count)=0
Set the minimum number of vertices for which a hw buffer will be created.
virtual void draw2DLine(const core::position2d< s32 > &start, const core::position2d< s32 > &end, SColor color=SColor(255, 255, 255, 255))=0
Draws a 2d line. Both start and end will be included in coloring.
void drawIndexedTriangleFan(const S3DVertexTangents *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle fan.
Definition: IVideoDriver.h:752
virtual s32 addDynamicLight(const SLight &light)=0
void drawIndexedTriangleFan(const S3DVertex *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle fan.
Definition: IVideoDriver.h:722
virtual void draw2DRectangle(const core::rect< s32 > &pos, SColor colorLeftUp, SColor colorRightUp, SColor colorLeftDown, SColor colorRightDown, const core::rect< s32 > *clip=0)=0
Draws a 2d rectangle with a gradient.
virtual const core::matrix4 & getTransform(E_TRANSFORMATION_STATE state) const =0
Returns the transformation set by setTransform.
virtual void setTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag, bool enabled=true)=0
Enables or disables a texture creation flag.
virtual const wchar_t * getName() const =0
Gets name of this video driver.
virtual ITexture * addTexture(const core::dimension2d< u32 > &size, const io::path &name, ECOLOR_FORMAT format=ECF_A8R8G8B8)=0
Creates an empty texture of specified size.
virtual bool setRenderTarget(video::ITexture *texture, bool clearBackBuffer=true, bool clearZBuffer=true, SColor color=video::SColor(0, 0, 0, 0))=0
Sets a new render target.
virtual void setMaterial(const SMaterial &material)=0
Sets a material.
virtual u32 getImageLoaderCount() const =0
Retrieve the number of image loaders.
virtual void addExternalImageLoader(IImageLoader *loader)=0
Adds an external image loader to the engine.
virtual bool setClipPlane(u32 index, const core::plane3df &plane, bool enable=false)=0
Set or unset a clipping plane.
virtual void drawStencilShadow(bool clearStencilBuffer=false, video::SColor leftUpEdge=video::SColor(255, 0, 0, 0), video::SColor rightUpEdge=video::SColor(255, 0, 0, 0), video::SColor leftDownEdge=video::SColor(255, 0, 0, 0), video::SColor rightDownEdge=video::SColor(255, 0, 0, 0))=0
Fills the stencil shadow with color.
virtual u32 getDynamicLightCount() const =0
Returns amount of dynamic lights currently set.
virtual scene::IMeshManipulator * getMeshManipulator()=0
Returns a pointer to the mesh manipulator.
virtual void fillMaterialStructureFromAttributes(video::SMaterial &outMaterial, io::IAttributes *attributes)=0
Fills an SMaterial structure from attributes.
virtual core::dimension2du getMaxTextureSize() const =0
Get the maximum texture size supported.
virtual const SLight & getDynamicLight(u32 idx) const =0
Returns light data which was previously set by IVideoDriver::addDynamicLight().
virtual void removeOcclusionQuery(scene::ISceneNode *node)=0
Remove occlusion query.
virtual _IRR_DEPRECATED_ IImage * createImage(IImage *imageToCopy, const core::position2d< s32 > &pos, const core::dimension2d< u32 > &size)=0
Creates a software image from a part of another image.
virtual const core::dimension2d< u32 > & getScreenSize() const =0
Get the size of the screen or render window.
virtual const core::rect< s32 > & getViewPort() const =0
Gets the area of the current viewport.
virtual ITexture * addRenderTargetTexture(const core::dimension2d< u32 > &size, const io::path &name="rt", const ECOLOR_FORMAT format=ECF_UNKNOWN)=0
Adds a new render target texture to the texture cache.
virtual void enableClipPlane(u32 index, bool enable)=0
Enable or disable a clipping plane.
virtual void setAmbientLight(const SColorf &color)=0
Only used by the engine internally.
virtual void draw2DPolygon(core::position2d< s32 > center, f32 radius, video::SColor color=SColor(100, 255, 255, 255), s32 vertexCount=10)=0
Draws a non filled concyclic regular 2d polygon.
virtual void setTransform(E_TRANSFORMATION_STATE state, const core::matrix4 &mat)=0
Sets transformation matrices.
virtual void runOcclusionQuery(scene::ISceneNode *node, bool visible=false)=0
Run occlusion query. Draws mesh stored in query.
virtual ITexture * getTexture(io::IReadFile *file)=0
Get access to a named texture.
virtual void drawMeshBuffer(const scene::IMeshBuffer *mb)=0
Draws a mesh buffer.
virtual void drawVertexPrimitiveList(const void *vertices, u32 vertexCount, const void *indexList, u32 primCount, E_VERTEX_TYPE vType=EVT_STANDARD, scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES, E_INDEX_TYPE iType=EIT_16BIT)=0
Draws a vertex primitive list.
virtual void deleteAllDynamicLights()=0
Deletes all dynamic lights which were previously added with addDynamicLight().
virtual void updateAllOcclusionQueries(bool block=true)=0
Update all occlusion queries. Retrieves results from GPU.
virtual u32 getMaximalDynamicLightAmount() const =0
Returns the maximal amount of dynamic lights the device can handle.
virtual ITexture * getTextureByIndex(u32 index)=0
Returns a texture by index.
virtual ITexture * addTexture(const io::path &name, IImage *image, void *mipmapData=0)=0
Creates a texture from an IImage.
virtual u32 getMaterialRendererCount() const =0
Get amount of currently available material renderers.
virtual void draw2DImage(const video::ITexture *texture, const core::position2d< s32 > &destPos)=0
Draws a 2d image without any special effects.
virtual IImage * createImageFromFile(const io::path &filename)=0
Creates a software image from a file.
virtual void draw3DTriangle(const core::triangle3df &triangle, SColor color=SColor(255, 255, 255, 255))=0
Draws a 3d triangle.
virtual const c8 * getMaterialRendererName(u32 idx) const =0
Get name of a material renderer.
virtual void draw2DRectangle(SColor color, const core::rect< s32 > &pos, const core::rect< s32 > *clip=0)=0
Draws a 2d rectangle.
virtual void removeTexture(ITexture *texture)=0
Removes a texture from the texture cache and deletes it.
virtual IMaterialRenderer * getMaterialRenderer(u32 idx)=0
Get access to a material renderer by index.
virtual IImageWriter * getImageWriter(u32 n)=0
Retrieve the given image writer.
virtual IGPUProgrammingServices * getGPUProgrammingServices()=0
Gets the IGPUProgrammingServices interface.
virtual video::ITexture * findTexture(const io::path &filename)=0
Check if the image is already loaded.
virtual bool setRenderTarget(E_RENDER_TARGET target, bool clearTarget=true, bool clearZBuffer=true, SColor color=video::SColor(0, 0, 0, 0))=0
set or reset special render targets
virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const =0
Queries the features of the driver.
void drawIndexedTriangleFan(const S3DVertex2TCoords *vertices, u32 vertexCount, const u16 *indexList, u32 triangleCount)
Draws an indexed triangle fan.
Definition: IVideoDriver.h:737
virtual bool writeImageToFile(IImage *image, io::IWriteFile *file, u32 param=0)=0
Writes the provided image to a file.
virtual void runAllOcclusionQueries(bool visible=false)=0
Run all occlusion queries. Draws all meshes stored in queries.
virtual void drawStencilShadowVolume(const core::array< core::vector3df > &triangles, bool zfail=true, u32 debugDataVisible=0)=0
Draws a shadow volume into the stencil buffer.
virtual bool getTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag) const =0
Returns if a texture creation flag is enabled or disabled.
virtual void disableFeature(E_VIDEO_DRIVER_FEATURE feature, bool flag=true)=0
Disable a feature of the driver.
virtual void makeColorKeyTexture(video::ITexture *texture, core::position2d< s32 > colorKeyPixelPos, bool zeroTexels=false) const =0
Sets a boolean alpha channel on the texture based on the color at a position.
virtual IImage * createImage(ECOLOR_FORMAT format, const core::dimension2d< u32 > &size)=0
Creates an empty software image.
virtual void setViewPort(const core::rect< s32 > &area)=0
Sets a new viewport.
virtual SOverrideMaterial & getOverrideMaterial()=0
Get the global Material, which might override local materials.
virtual ITexture * getTexture(const io::path &filename)=0
Get access to a named texture.
virtual void setAllowZWriteOnTransparent(bool flag)=0
Only used by the engine internally.
virtual E_DRIVER_TYPE getDriverType() const =0
Get type of video driver.
virtual void setFog(SColor color=SColor(0, 255, 255, 255), E_FOG_TYPE fogType=EFT_FOG_LINEAR, f32 start=50.0f, f32 end=100.0f, f32 density=0.01f, bool pixelFog=false, bool rangeFog=false)=0
Sets the fog mode.
virtual _IRR_DEPRECATED_ IImage * createImage(ECOLOR_FORMAT format, IImage *imageToCopy)=0
Creates a software image by converting it to given format from another image.
virtual void convertColor(const void *sP, ECOLOR_FORMAT sF, s32 sN, void *dP, ECOLOR_FORMAT dF) const =0
Color conversion convenience function.
virtual ECOLOR_FORMAT getColorFormat() const =0
Get the current color format of the color buffer.
virtual u32 getMaximalPrimitiveCount() const =0
Returns the maximum amount of primitives.
Class representing a 32 bit ARGB color.
Definition: SColor.h:202
Class representing a color with four floats.
Definition: SColor.h:459
Struct for holding parameters for a material renderer.
Definition: SMaterial.h:227
bool ZWriteEnable
Is the zbuffer writeable or is it read-only. Default: true.
Definition: SMaterial.h:422
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:387
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:297
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:410
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:379
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:407
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:366
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:372
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:439
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:428
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:431
E_POLYGON_OFFSET PolygonOffsetDirection
Flag defining the direction the polygon offset is applied to.
Definition: SMaterial.h:401
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:413
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:435
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:425
u8 PolygonOffsetFactor
Factor specifying how far the polygon offset should be made.
Definition: SMaterial.h:397
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:392
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:416
bool BilinearFilter
Is bilinear filtering enabled? Default: true.
bool TrilinearFilter
Is trilinear filtering enabled? Default: false.
u8 AnisotropicFilter
Is anisotropic filtering enabled? Default: 0, disabled.
u8 TextureWrapU
Texture Clamp Mode.
#define _IRR_DEPRECATED_
Defines a deprecated macro which generates a warning at compile time.
Definition: irrTypes.h:195
E_PRIMITIVE_TYPE
Enumeration for all primitive types there are.
@ EPT_TRIANGLES
Explicitly set all vertices for each triangle.
E_VERTEX_TYPE
Enumeration for all vertex types there are.
Definition: S3DVertex.h:19
@ EVT_2TCOORDS
Vertex with two texture coordinates, video::S3DVertex2TCoords.
Definition: S3DVertex.h:25
@ EVT_TANGENTS
Vertex with a tangent and binormal vector, video::S3DVertexTangents.
Definition: S3DVertex.h:29
@ EVT_STANDARD
Standard vertex type used by the Irrlicht engine, video::S3DVertex.
Definition: S3DVertex.h:21
E_TRANSFORMATION_STATE
enumeration for geometry transformation states
Definition: IVideoDriver.h:53
@ ETS_VIEW
View transformation.
Definition: IVideoDriver.h:55
@ ETS_TEXTURE_1
Texture transformation.
Definition: IVideoDriver.h:63
@ ETS_TEXTURE_2
Texture transformation.
Definition: IVideoDriver.h:65
@ ETS_TEXTURE_0
Texture transformation.
Definition: IVideoDriver.h:61
@ ETS_WORLD
World transformation.
Definition: IVideoDriver.h:57
@ ETS_TEXTURE_3
Texture transformation.
Definition: IVideoDriver.h:67
@ ETS_COUNT
Not used.
Definition: IVideoDriver.h:85
@ ETS_PROJECTION
Projection transformation.
Definition: IVideoDriver.h:59
ECOLOR_FORMAT
An enum for the color format of textures used by the Irrlicht Engine.
Definition: SColor.h:18
@ ECF_UNKNOWN
Unknown color format:
Definition: SColor.h:55
@ ECF_A8R8G8B8
Default 32 bit color format. 8 bits are used for every component: red, green, blue and alpha.
Definition: SColor.h:32
E_VIDEO_DRIVER_FEATURE
enumeration for querying features of the video driver.
const c8 *const FogTypeNames[]
Definition: IVideoDriver.h:140
E_LOST_RESOURCE
enumeration for signaling resources which were lost after the last render cycle
Definition: IVideoDriver.h:93
@ ELR_TEXTURES
All texture are lost, rare problem.
Definition: IVideoDriver.h:97
@ ELR_HW_BUFFERS
The HW buffers are lost, will be recreated automatically, but might require some more time this frame...
Definition: IVideoDriver.h:101
@ ELR_DEVICE
The whole device/driver is lost.
Definition: IVideoDriver.h:95
@ ELR_RTTS
The Render Target Textures are lost, typical problem for D3D.
Definition: IVideoDriver.h:99
E_RENDER_TARGET
Special render targets, which usually map to dedicated hardware.
Definition: IVideoDriver.h:107
@ ERT_AUX_BUFFER4
Auxiliary buffer 4.
Definition: IVideoDriver.h:129
@ ERT_AUX_BUFFER1
Auxiliary buffer 1.
Definition: IVideoDriver.h:123
@ ERT_RENDER_TEXTURE
Render target is a render texture.
Definition: IVideoDriver.h:111
@ ERT_AUX_BUFFER0
Auxiliary buffer 0.
Definition: IVideoDriver.h:121
@ ERT_FRAME_BUFFER
Render target is the main color frame buffer.
Definition: IVideoDriver.h:109
@ ERT_STEREO_LEFT_BUFFER
Render target is the main color frame buffer.
Definition: IVideoDriver.h:115
@ ERT_STEREO_BOTH_BUFFERS
Render to both stereo buffers at once.
Definition: IVideoDriver.h:119
@ ERT_STEREO_RIGHT_BUFFER
Render target is the right color buffer (left is the main buffer)
Definition: IVideoDriver.h:117
@ ERT_AUX_BUFFER3
Auxiliary buffer 3.
Definition: IVideoDriver.h:127
@ ERT_MULTI_RENDER_TEXTURES
Multi-Render target textures.
Definition: IVideoDriver.h:113
@ ERT_AUX_BUFFER2
Auxiliary buffer 2.
Definition: IVideoDriver.h:125
E_BLEND_OPERATION
Values defining the blend operation used when blend is enabled.
Definition: SMaterial.h:40
@ EBO_NONE
No blending happens.
Definition: SMaterial.h:41
@ EMF_FRONT_FACE_CULLING
Is frontface culling enabled? Default: false.
@ EMF_POINTCLOUD
Draw as point cloud or filled triangles? Default: false.
@ EMF_NORMALIZE_NORMALS
Normalizes normals. Default: false.
@ EMF_ZBUFFER
Is the ZBuffer enabled? Default: true.
@ EMF_ZWRITE_ENABLE
May be written to the zbuffer or is it readonly. Default: true.
@ EMF_FOG_ENABLE
Is fog enabled? Default: false.
@ EMF_COLOR_MASK
ColorMask bits, for enabling the color planes.
@ EMF_TRILINEAR_FILTER
Is trilinear filtering enabled? Default: false.
@ EMF_TEXTURE_WRAP
Access to all layers texture wrap settings. Overwrites separate layer settings.
@ EMF_COLOR_MATERIAL
ColorMaterial enum for vertex color interpretation.
@ EMF_GOURAUD_SHADING
Flat or Gouraud shading? Default: true.
@ EMF_USE_MIP_MAPS
Flag for enabling/disabling mipmap usage.
@ EMF_ANISOTROPIC_FILTER
Is anisotropic filtering? Default: false.
@ EMF_ANTI_ALIASING
AntiAliasing mode.
@ EMF_BLEND_OPERATION
Flag for blend operation.
@ EMF_WIREFRAME
Draw as wireframe or filled triangles? Default: false.
@ EMF_POLYGON_OFFSET
Flag for polygon offset.
@ EMF_LIGHTING
Will this material be lighted? Default: true.
@ EMF_BACK_FACE_CULLING
Is backface culling enabled? Default: true.
@ EMF_BILINEAR_FILTER
Is bilinear filtering enabled? Default: true.
E_COLOR_PLANE
Enum values for enabling/disabling color planes for rendering.
Definition: SMaterial.h:84
@ ECP_ALL
All planes enabled.
Definition: SMaterial.h:98
E_BLEND_FACTOR
Flag for EMT_ONETEXTURE_BLEND, ( BlendFactor ) BlendFunc = source * sourceFactor + dest * destFactor.
Definition: SMaterial.h:24
@ EBF_ONE
src & dest (1, 1, 1, 1)
Definition: SMaterial.h:26
@ EBF_ONE_MINUS_SRC_ALPHA
src & dest (1-srcA, 1-srcA, 1-srcA, 1-srcA)
Definition: SMaterial.h:32
E_TEXTURE_CREATION_FLAG
Enumeration flags telling the video driver in which format textures should be created.
Definition: ITexture.h:23
E_FOG_TYPE
Enum for the types of fog distributions to choose from.
Definition: IVideoDriver.h:134
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition: EDriverTypes.h:15
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:13
float f32
32 bit floating point variable.
Definition: irrTypes.h:104
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:58
char c8
8 bit character variable.
Definition: irrTypes.h:31
signed int s32
32 bit signed variable.
Definition: irrTypes.h:66
unsigned short u16
16 bit unsigned variable.
Definition: irrTypes.h:40
struct holding data describing options
IRenderTarget(E_RENDER_TARGET target, E_COLOR_PLANE colorMask=ECP_ALL, E_BLEND_FACTOR blendFuncSrc=EBF_ONE, E_BLEND_FACTOR blendFuncDst=EBF_ONE_MINUS_SRC_ALPHA, E_BLEND_OPERATION blendOp=EBO_NONE)
Definition: IVideoDriver.h:222
E_BLEND_OPERATION BlendOp
Definition: IVideoDriver.h:245
E_RENDER_TARGET TargetType
Definition: IVideoDriver.h:241
bool operator!=(const IRenderTarget &other) const
Definition: IVideoDriver.h:231
IRenderTarget(ITexture *texture, E_COLOR_PLANE colorMask=ECP_ALL, E_BLEND_FACTOR blendFuncSrc=EBF_ONE, E_BLEND_FACTOR blendFuncDst=EBF_ONE_MINUS_SRC_ALPHA, E_BLEND_OPERATION blendOp=EBO_NONE)
Definition: IVideoDriver.h:213
E_BLEND_FACTOR BlendFuncDst
Definition: IVideoDriver.h:244
E_BLEND_FACTOR BlendFuncSrc
Definition: IVideoDriver.h:243
Vertex with two texture coordinates.
Definition: S3DVertex.h:109
standard vertex used by the Irrlicht engine.
Definition: S3DVertex.h:43
Vertex with a tangent and binormal vector.
Definition: S3DVertex.h:186
structure for holding data describing a driver and operating system specific data.
structure for holding data describing a dynamic point light.
Definition: SLight.h:42
void apply(SMaterial &material)
Apply the enabled overrides.
Definition: IVideoDriver.h:167
u32 EnableFlags
Which values are taken for override.
Definition: IVideoDriver.h:154
SMaterial Material
The Material values.
Definition: IVideoDriver.h:151
bool Enabled
Global enable flag, overwritten by the SceneManager in each pass.
Definition: IVideoDriver.h:161
SOverrideMaterial()
Default constructor.
Definition: IVideoDriver.h:164
u16 EnablePasses
Set in which render passes the material override is active.
Definition: IVideoDriver.h:157