upgrade-guide.txt 118 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892
  1. This file contains API changes between consecutive versions. You can get the
  2. relevant information about all changes to the public Irrlicht API needed for
  3. upgrading your code (esp. custom scene nodes and GUI elements) to a new Irrlicht
  4. version. Since all changes are incremental you should skip forward to the
  5. version you use right now and check each note until you reach the desired
  6. version.
  7. Please note that the changes described here do not contain functional changes,
  8. but only syntactical ones. Also, new methods are not documented here and
  9. have to be looked up in the API documentation instead.
  10. Basically, all changes have to be reflected in user code where used. Removed
  11. and renamed methods are obviously not existant anymore. A hint is usually given
  12. for such changes on how to remedy the situation.
  13. Changed signatures of methods might go unnoticed. That need not be a bad thing,
  14. e.g. for changes from s32 to u32 the parameters are usually automatically
  15. converted by the compiler. However, one should be careful when writing custom
  16. scene nodes or GUI elements. It might happen that the methods are not properly
  17. chosen as candidates for virtual overloading. So always check that methods in
  18. the user code have the proper signatures just as the interface versions. The
  19. change hint will help to identify necessary changes.
  20. Changes for Version 1.2
  21. -----------------------
  22. Removed compile flag (always used where available)
  23. _IRR_LINUX_OPENGL_USE_EXTENSIONS_
  24. IAnimatedMeshB3d:
  25. Removed (no replacement available)
  26. virtual void AddMatrixToJoint(s32 jointNumber, core::matrix4* matrix) = 0;
  27. IGUIElement.h
  28. Changed signatures (made const)
  29. IGUIElement* getParent() const
  30. core::rect<s32> getRelativePosition() const
  31. IGUITabControl.h
  32. Changed signatures (const param)
  33. virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
  34. IImage.h
  35. Changed signatures (made const)
  36. virtual ECOLOR_FORMAT getColorFormat() const = 0;
  37. IParticleAffector.h
  38. Changed inheritance (from irr:IUnknown)
  39. class IParticleAffector : public virtual io::IAttributeExchangingObject
  40. IParticleEmitter.h
  41. Changed inheritance (from irr:IUnknown)
  42. class IParticleEmitter : public virtual io::IAttributeExchangingObject
  43. IParticleSystemSceneNode.h
  44. Changed signatures (const param)
  45. virtual IParticleEmitter* createPointEmitter(
  46. const core::vector3df& direction = core::vector3df(0.0f,0.03f,0.0f),
  47. u32 minParticlesPerSecond = 5,
  48. u32 maxParticlesPerSecond = 10,
  49. video::SColor minStartColor = video::SColor(255,0,0,0),
  50. virtual IParticleEmitter* createBoxEmitter(
  51. const core::aabbox3df& box = core::aabbox3df(-10,28,-10,10,30,10),
  52. const core::vector3df& direction = core::vector3df(0.0f,0.03f,0.0f),
  53. u32 minParticlesPerSecond = 5,
  54. u32 maxParticlesPerSecond = 10,
  55. video::SColor minStartColor = video::SColor(255,0,0,0),
  56. virtual IParticleAffector* createGravityAffector(
  57. const core::vector3df& gravity = core::vector3df(0.0f,-0.03f,0.0f),
  58. u32 timeForceLost = 1000) = 0;
  59. ISceneManager.h
  60. Changed signatures (additional param)
  61. virtual ISceneNodeAnimator* createFlyCircleAnimator(const core::vector3df& center,
  62. f32 radius, f32 speed=0.001f, const core::vector3df& direction= core::vector3df ( 0.f, 1.f, 0.f ) ) = 0;
  63. ITexture.h
  64. Changed signatures (made const)
  65. virtual ECOLOR_FORMAT getColorFormat() const = 0;
  66. IVideoDriver.h
  67. Changed signatures (changed default param, use ECF_A1R5G5B5 explicitly for old behavior)
  68. virtual ITexture* addTexture(const core::dimension2d<s32>& size,
  69. const c8* name, ECOLOR_FORMAT format = ECF_A8R8G8B8) = 0;
  70. Changed signatures (made const)
  71. virtual ITexture* createRenderTargetTexture(const core::dimension2d<s32>& size) = 0;
  72. matrix4.h
  73. Changed signatures (swapped parameter, it was (col, row) before although the names did not represent this)
  74. f32& operator()(s32 row, s32 col);
  75. const f32& operator()(s32 row, s32 col) const;
  76. S3DVertex.h
  77. Changed signatures (unconst param)
  78. S3DVertex(f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv);
  79. S3DVertex(const core::vector3df& pos, const core::vector3df& normal,
  80. SColor color, const core::vector2d<f32>& tcoords);
  81. S3DVertex2TCoords(f32 x, f32 y, f32 z, SColor c, f32 tu, f32 tv, f32 tu2, f32 tv2);
  82. S3DVertex2TCoords(const core::vector3df& pos, SColor color,
  83. const core::vector2d<f32>& tcoords, const core::vector2d<f32>& tcoords2);
  84. S3DVertex2TCoords(f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv);
  85. S3DVertex2TCoords(const core::vector3df& pos, const core::vector3df& normal,
  86. SColor color, const core::vector2d<f32>& tcoords);
  87. S3DVertexTangents(const core::vector3df& pos,
  88. const core::vector2df& tcoords, SColor c);
  89. SColor.h
  90. Changed signatures (changed param types from signed to unsigned)
  91. inline u16 RGBA16(u32 r, u32 g, u32 b, u32 a);
  92. inline u16 RGB16(u32 r, u32 g, u32 b);
  93. inline u16 X8R8G8B8toA1R5G5B5(u32 color);
  94. inline u32 A1R5G5B5toA8R8G8B8(u32 color);
  95. inline u32 R5G6B5toA8R8G8B8(u16 color);
  96. inline u16 R5G6B5toA1R5G5B5(u16 color);
  97. inline u16 A1R5G5B5toR5G6B5(u16 color);
  98. inline u32 getAlpha(u16 color);
  99. inline u32 getRed(u16 color);
  100. inline u32 getGreen(u16 color);
  101. inline u32 getBlue(u16 color);
  102. inline u32 getLuminance(u16 color);
  103. inline SColor (u32 a, u32 r, u32 g, u32 b);
  104. inline SColor(u32 clr);
  105. inline u32 getAlpha() const
  106. inline u32 getRed() const
  107. inline u32 getGreen() const
  108. inline u32 getBlue() const
  109. inline void setAlpha(u32 a);
  110. inline void setRed(u32 r);
  111. inline void setGreen(u32 g);
  112. inline void setBlue(u32 b);
  113. inline u16 toA1R5G5B5() const
  114. inline void toOpenGLColor(u8* dest) const
  115. inline void set(u32 a, u32 r, u32 g, u32 b);
  116. inline void set(u32 col);
  117. Changed signatures (const param)
  118. inline SColor getInterpolated(const SColor &other, f32 d) const
  119. Changed public member (type changed)
  120. u32 color;
  121. Changes for Version 1.3
  122. -----------------------
  123. Globally renamed Frustrum to Frustum in all signatures and code parts
  124. IAnimatedMeshB3d.h
  125. Renamed methods (small first letter)
  126. virtual void setInterpolationMode(s32 mode) = 0;
  127. virtual void setAnimateMode(s32 mode) = 0;
  128. IAnimatedMeshSceneNode.h
  129. changed signature (changed types)
  130. virtual void setAnimationSpeed(f32 framesPerSecond) = 0;
  131. ICameraSceneNode.h
  132. Renamed methods and changed signature (changed types, frustum renaming)
  133. virtual const SViewFrustum* getViewFrustum() const = 0;
  134. IFileSystem.h
  135. Renamed method (from addUnZipFileArchive)
  136. virtual bool addFolderFileArchive(const c8* filename, bool ignoreCase = true, bool ignorePaths = true) = 0;
  137. IGUIContextMenu.h
  138. Changed signature (added param)
  139. virtual s32 addItem(const wchar_t* text, s32 commandId=-1, bool enabled=true,
  140. bool hasSubMenu=false, bool checked=false) = 0;
  141. IGUIElement.h
  142. Changed inheritance
  143. class IGUIElement : public virtual io::IAttributeExchangingObject, public IEventReceiver
  144. Changed signature (made const)
  145. core::rect<s32> getAbsolutePosition() const
  146. IGUIEnvironment.h
  147. Changed signature (added param)
  148. virtual IGUIButton* addButton(const core::rect<s32>& rectangle,
  149. IGUIElement* parent=0, s32 id=-1, const wchar_t* text=0, const wchar_t* tooltiptext = 0) = 0;
  150. IGUIListBox.h
  151. Removed method (Using sprite bank now)
  152. virtual void setIconFont(IGUIFont* font) = 0;
  153. Change signature (changed types, due to sprite bank)
  154. virtual s32 addItem(const wchar_t* text, s32 icon) = 0;
  155. IGUISkin.h
  156. Changed inheritance
  157. class IGUISkin : public virtual io::IAttributeExchangingObject
  158. IGUIToolbar.h
  159. Changed signature (Added param for tooltips)
  160. virtual IGUIButton* addButton(s32 id=-1, const wchar_t* text=0, const wchar_t* tooltiptext=0,
  161. video::ITexture* img=0, video::ITexture* pressedimg=0,
  162. bool isPushButton=false, bool useAlphaChannel=false) = 0;
  163. IImage.h
  164. Changed signature (made const)
  165. virtual u32 getPitch() const = 0;
  166. IImageWriter.h
  167. Changed signature (additional param)
  168. virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param = 0) = 0;
  169. IMeshBuffer.h
  170. Changed signature (changed return type)
  171. virtual u32 getVertexCount() const = 0;
  172. virtual u32 getIndexCount() const = 0;
  173. Removed method (use setBoundingBox instead)
  174. virtual core::aabbox3df& getBoundingBox() = 0;
  175. IMesh.h
  176. Changed signature (changed types, made const)
  177. virtual u32 getMeshBufferCount() const = 0;
  178. virtual IMeshBuffer* getMeshBuffer(u32 nr) const = 0;
  179. Removed method (use setBoundingBox instead)
  180. virtual core::aabbox3d<f32>& getBoundingBox() = 0;
  181. IReadFile.h
  182. Changed signature (changed types)
  183. virtual s32 read(void* buffer, u32 sizeToRead) = 0;
  184. irrArray.h
  185. Changed signature (made const)
  186. s32 binary_search(const T& element, s32 left, s32 right) const
  187. irrMath.h
  188. Constant changed
  189. const f32 PI = 3.14159265359f;
  190. Constants removed (use RADTODEG64 or DEGTORAD64 instead)
  191. const f64 GRAD_PI = 180.0 / PI64;
  192. const f64 GRAD_PI2 = PI64 / 180.0;
  193. Changed signature (added tolerance parameter)
  194. inline bool equals(const f32 a, const f32 b, const f32 tolerance = ROUNDING_ERROR_32)
  195. irrString.h
  196. Changed signature (const param)
  197. template <class B> string(const B* const c, u32 length);
  198. template <class B> string(const B* const c);
  199. template <class B> string<T>& operator=(const B* const c);
  200. template <class B> string<T> operator+(const B* const c) const
  201. bool operator ==(const T* const str) const
  202. bool operator !=(const T* const str) const
  203. bool equalsn(const T* const str, int len) const
  204. void append(const T* const other);
  205. s32 findFirstChar(const T* const c, u32 count) const
  206. template <class B> s32 findFirstCharNotInList(const B* const c, u32 count) const
  207. template <class B> s32 findLastCharNotInList(const B* const c, u32 count) const
  208. template <class B> s32 find(const B* const str) const
  209. void operator += (const T* const c);
  210. Changed signature (changed type from signed)
  211. T& operator [](const u32 index) const
  212. u32 size() const
  213. void append(const string<T>& other, u32 length);
  214. void reserve(u32 count);
  215. s32 findNext(T c, u32 startPos) const
  216. string<T> subString(u32 begin, s32 length) const
  217. void erase(u32 index);
  218. void reallocate(u32 new_size);
  219. Changed signature (added param)
  220. s32 findLast(T c, s32 start = -1) const
  221. ISceneManager.h
  222. Changed signature (changed default param from 128 minimalPolysPerNode)
  223. virtual ISceneNode* addOctTreeSceneNode(IAnimatedMesh* mesh, ISceneNode* parent=0,
  224. s32 id=-1, s32 minimalPolysPerNode=256, bool alsoAddIfMeshPointerZero=false) = 0;
  225. virtual ISceneNode* addOctTreeSceneNode(IMesh* mesh, ISceneNode* parent=0,
  226. s32 id=-1, s32 minimalPolysPerNode=256, bool alsoAddIfMeshPointerZero=false) = 0;
  227. Changed signature (added param)
  228. virtual ICameraSceneNode* addCameraSceneNodeFPS(ISceneNode* parent = 0,
  229. f32 rotateSpeed = 100.0f, f32 moveSpeed = 500.0f, s32 id=-1,
  230. SKeyMap* keyMapArray=0, s32 keyMapSize=0, bool noVerticalMovement=false,
  231. f32 jumpSpeed = 0.f) = 0;
  232. virtual IBillboardSceneNode* addBillboardSceneNode(ISceneNode* parent = 0,
  233. const core::dimension2d<f32>& size = core::dimension2d<f32>(10.0f, 10.0f),
  234. const core::vector3df& position = core::vector3df(0,0,0), s32 id=-1,
  235. video::SColor shade_top = 0xFFFFFFFF, video::SColor shade_down = 0xFFFFFFFF) = 0;
  236. virtual ITerrainSceneNode* addTerrainSceneNode(
  237. const c8* heightMapFileName,
  238. ISceneNode* parent=0, s32 id=-1,
  239. const core::vector3df& position = core::vector3df(0.0f,0.0f,0.0f),
  240. const core::vector3df& rotation = core::vector3df(0.0f,0.0f,0.0f),
  241. const core::vector3df& scale = core::vector3df(1.0f,1.0f,1.0f),
  242. video::SColor vertexColor = video::SColor(255,255,255,255),
  243. s32 maxLOD=5, E_TERRAIN_PATCH_SIZE patchSize=ETPS_17, s32 smoothFactor=0) = 0;
  244. virtual ITerrainSceneNode* addTerrainSceneNode(
  245. io::IReadFile* heightMapFile,
  246. ISceneNode* parent=0, s32 id=-1,
  247. const core::vector3df& position = core::vector3df(0.0f,0.0f,0.0f),
  248. const core::vector3df& rotation = core::vector3df(0.0f,0.0f,0.0f),
  249. const core::vector3df& scale = core::vector3df(1.0f,1.0f,1.0f),
  250. video::SColor vertexColor = video::SColor(255,255,255,255),
  251. s32 maxLOD=5, E_TERRAIN_PATCH_SIZE patchSize=ETPS_17, s32 smoothFactor=0) = 0;
  252. Changed signature (changed return type)
  253. virtual u32 registerNodeForRendering(ISceneNode* node,
  254. E_SCENE_NODE_RENDER_PASS pass = ESNRP_AUTOMATIC) = 0;
  255. ISceneNodeAnimatorCollisionResponse.h
  256. Changed signature (made const)
  257. virtual void setEllipsoidTranslation(const core::vector3df &translation) = 0;
  258. ISceneNode.h
  259. Renamed method (from OnPreRender)
  260. virtual void OnRegisterSceneNode();
  261. Renamed method (from OnPostRender)
  262. virtual void OnAnimate(u32 timeMs);
  263. Changed signature (made const)
  264. virtual const core::aabbox3d<f32> getTransformedBoundingBox() const
  265. const core::matrix4& getAbsoluteTransformation() const
  266. virtual bool isVisible() const
  267. virtual s32 getID() const
  268. scene::ISceneNode* getParent() const
  269. virtual ESCENE_NODE_TYPE getType() const
  270. Changed signature (changed type)
  271. virtual video::SMaterial& getMaterial(u32 num);
  272. void setMaterialTexture(u32 textureLayer, video::ITexture* texture);
  273. void setAutomaticCulling( E_CULLING_TYPE state);
  274. virtual void setDebugDataVisible(E_DEBUG_SCENE_TYPE visible);
  275. Changed signature (changed return type)
  276. virtual u32 getMaterialCount();
  277. virtual const core::vector3df& getRotation() const
  278. E_CULLING_TYPE getAutomaticCulling() const
  279. Changed signature (changed return type, made const)
  280. E_DEBUG_SCENE_TYPE isDebugDataVisible() const
  281. ITerrainSceneNode.h
  282. Changed signature (changed return type)
  283. virtual u32 getIndexCount() = 0;
  284. ITexture.h
  285. Changed signature (changed return type, made const)
  286. virtual u32 getPitch() const = 0;
  287. Removed method (Available in SMaterial now)
  288. core::matrix4& getTransformation();
  289. IVideoDriver.h
  290. Changed signature (changed types)
  291. virtual ITexture* getTextureByIndex(u32 index) = 0;
  292. virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount, const u16* indexList, u32 triangleCount, E_VERTEX_TYPE vType, scene::E_PRIMITIVE_TYPE pType) = 0;
  293. virtual void drawIndexedTriangleList(const S3DVertex* vertices,
  294. u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
  295. virtual void drawIndexedTriangleList(const S3DVertex2TCoords* vertices,
  296. u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
  297. virtual void drawIndexedTriangleList(const S3DVertexTangents* vertices,
  298. u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
  299. virtual void drawIndexedTriangleFan(const S3DVertex* vertices,
  300. u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
  301. virtual void drawIndexedTriangleFan(const S3DVertex2TCoords* vertices,
  302. u32 vertexCount, const u16* indexList, u32 triangleCount) = 0;
  303. virtual const SLight& getDynamicLight(u32 idx) = 0;
  304. virtual IMaterialRenderer* getMaterialRenderer(u32 idx) = 0;
  305. virtual const c8* getMaterialRendererName(u32 idx) = 0;
  306. Changed signature (const param)
  307. virtual void drawMeshBuffer( const scene::IMeshBuffer* mb) = 0;
  308. virtual io::IAttributes* createAttributesFromMaterial(const video::SMaterial& material) = 0;
  309. Changed signature (added param)
  310. virtual u32 getPrimitiveCountDrawn( u32 param = 0 ) = 0;
  311. virtual bool writeImageToFile(IImage* image, const c8* filename, u32 param = 0) = 0;
  312. virtual IImage* createImageFromData(ECOLOR_FORMAT format,
  313. const core::dimension2d<s32>& size, void *data,
  314. bool ownForeignMemory=false,
  315. bool deleteMemory = true) = 0;
  316. Changed signature (changed return types)
  317. virtual u32 getMaximalDynamicLightAmount() = 0;
  318. virtual u32 getDynamicLightCount() = 0;
  319. virtual u32 getMaximalPrimitiveCount() = 0;
  320. virtual u32 getMaterialRendererCount() = 0;
  321. matrix4.h
  322. Changed signature (added param)
  323. matrix4( eConstructor constructor = EM4CONST_IDENTITY );
  324. Changed signature (const param)
  325. f32& operator()(const s32 row, const s32 col);
  326. const f32& operator()(const s32 row, const s32 col) const
  327. Changed signature (param order)
  328. void transformVect( vector3df& out, const vector3df& in ) const;
  329. quaternion.h
  330. Changed signature (changed return type)
  331. void slerp( quaternion q1, const quaternion q2, f32 interpolate );
  332. SColor.h
  333. Renamed method (from getLuminance), changed types
  334. inline s32 getAverage(s16 color);
  335. Changed signature (changed return types)
  336. inline f32 getLuminance() const
  337. Changed signature (const param)
  338. inline SColorf getInterpolated(const SColorf &other, f32 d) const
  339. SMaterial.h
  340. Constant type changed
  341. const u32 MATERIAL_MAX_TEXTURES = 4;
  342. Type changed
  343. class SMaterial
  344. Public members removed (use Textures[] instead)
  345. ITexture* Texture1;
  346. ITexture* Texture2;
  347. ITexture* Texture3;
  348. ITexture* Texture4;
  349. Public members removed (use setFlag()/getFlag() instead)
  350. Flags[]
  351. Public members changed (type changed)
  352. u32 ZBuffer;
  353. Changed signature (made const)
  354. inline bool operator!=(const SMaterial& b) const
  355. SMeshBuffer.h
  356. Changed signature (changed param)
  357. virtual u32 getVertexCount() const
  358. virtual u32 getIndexCount() const
  359. Removed method (use setBoundingBox instead)
  360. virtual core::aabbox3d<f32>& getBoundingBox();
  361. SMeshBufferLightMap.h
  362. Changed signature (changed param)
  363. virtual u32 getVertexCount() const
  364. virtual u32 getIndexCount() const
  365. Removed method (use setBoundingBox instead)
  366. virtual core::aabbox3d<f32>& getBoundingBox();
  367. SMeshBufferTangents.h
  368. Changed signature (changed param)
  369. virtual u32 getVertexCount() const
  370. virtual u32 getIndexCount() const
  371. Removed method (use setBoundingBox instead)
  372. virtual core::aabbox3d<f32>& getBoundingBox();
  373. SMesh.h
  374. Changed signature (changed param, made const)
  375. virtual u32 getMeshBufferCount() const
  376. virtual IMeshBuffer* getMeshBuffer(u32 nr) const
  377. Removed method (use setBoundingBox instead);
  378. virtual core::aabbox3d<f32>& getBoundingBox();
  379. vector3d.h
  380. Changed signature (changed return type)
  381. T getLength() const
  382. Changed signature (changed type)
  383. vector3d<T> getInterpolated(const vector3d<T>& other, const T d) const
  384. Changes for Version 1.3.1
  385. -------------------------
  386. Changed types:
  387. SMeshBuffer* types are now template typedefs from CMeshBuffer
  388. dimension2d.h
  389. Changed signature (const param)
  390. dimension2d(const T& width, const T& height);
  391. dimension2d<T> operator/(const T& scale);
  392. dimension2d<T> operator*(const T& scale);
  393. IAnimatedMeshSceneNode.h
  394. Changed signature (made const)
  395. virtual s32 getFrameNr() const = 0;
  396. virtual s32 getStartFrame() const = 0;
  397. virtual s32 getEndFrame() const = 0;
  398. Renamed method (from getAbsoluteTransformation)
  399. virtual const SMD3QuaterionTag& getMD3TagTransformation( const core::stringc & tagname) = 0;
  400. IGUIButton.h
  401. Renamed method (from getUseAlphaChannel)
  402. virtual bool isAlphaChannelUsed() = 0;
  403. IGUIElementFactory.h
  404. Changed signature (made const)
  405. EGUI_ELEMENT_TYPE getType() const
  406. virtual const c8* getTypeName() const
  407. IGUIEnvironment.h
  408. Changed signature (added param)
  409. virtual bool saveGUI(const c8* filename, IGUIElement* start=0) = 0;
  410. virtual bool saveGUI(io::IWriteFile* file, IGUIElement* start=0) = 0;
  411. virtual bool loadGUI(const c8* filename, IGUIElement* parent=0) = 0;
  412. virtual bool loadGUI(io::IReadFile* file, IGUIElement* parent=0) = 0;
  413. IGUIFontBitmap.h
  414. Changed signature (made const)
  415. virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; }
  416. IGUIFont.h
  417. Changed signature (made const)
  418. virtual EGUI_FONT_TYPE getType() const { return EGFT_CUSTOM; }
  419. IGUISkin.h
  420. Changed signature (added param)
  421. virtual IGUIFont* getFont(EGUI_DEFAULT_FONT which=EGDF_DEFAULT) = 0;
  422. virtual void setFont(IGUIFont* font, EGUI_DEFAULT_FONT which=EGDF_DEFAULT) = 0;
  423. Changed signature (made const)
  424. virtual EGUI_SKIN_TYPE getType() const { return EGST_UNKNOWN; };
  425. IImage.h
  426. Changed signature (made const)
  427. virtual const core::dimension2d<s32>& getDimension() const = 0;
  428. virtual u32 getRedMask() const = 0;
  429. virtual u32 getGreenMask() const = 0;
  430. virtual u32 getBlueMask() const = 0;
  431. virtual u32 getAlphaMask() const = 0;
  432. Changed signature (changed return type, made const)
  433. virtual u32 getBitsPerPixel() const = 0;
  434. virtual u32 getBytesPerPixel() const = 0;
  435. virtual u32 getImageDataSizeInBytes() const = 0;
  436. virtual u32 getImageDataSizeInPixels() const = 0;
  437. Changed signature (changed param type, made const)
  438. virtual SColor getPixel(u32 x, u32 y) const = 0;
  439. IMeshCache.h
  440. Changed signature (const param)
  441. virtual void removeMesh(const IAnimatedMesh* const mesh) = 0;
  442. Changed signature (const param, made const)
  443. virtual s32 getMeshIndex(const IAnimatedMesh* const mesh) const = 0;
  444. virtual const c8* getMeshFilename(const IAnimatedMesh* const mesh) const = 0;
  445. virtual const c8* getMeshFilename(const IMesh* const mesh) const = 0;
  446. Changed signature (changed return type, made const)
  447. virtual u32 getMeshCount() const = 0;
  448. Changed signature (changed param type)
  449. virtual IAnimatedMesh* getMeshByIndex(u32 index) = 0;
  450. Changed signature (made const)
  451. virtual const c8* getMeshFilename(u32 index) const = 0;
  452. IParticleAffector.h
  453. Changed signature (made const)
  454. virtual E_PARTICLE_AFFECTOR_TYPE getType() const = 0;
  455. IParticleEmitter.h
  456. Changed signature (made const)
  457. virtual E_PARTICLE_EMITTER_TYPE getType() const = 0;
  458. irrString.h
  459. Changed signature (const param)
  460. string(const double number);
  461. Changed signature (changed return type)
  462. string<T>& operator += (T c);
  463. string<T>& operator += (const string<T>& other);
  464. Changed signature (changed return type, const param)
  465. string<T>& operator += (const T* const c);
  466. string<T>& operator += (const int i);
  467. string<T>& operator += (const double i);
  468. ISceneManager.h
  469. Changed signature (added param)
  470. virtual ITerrainSceneNode* addTerrainSceneNode(
  471. const c8* heightMapFileName,
  472. ISceneNode* parent=0, s32 id=-1,
  473. const core::vector3df& position = core::vector3df(0.0f,0.0f,0.0f),
  474. const core::vector3df& rotation = core::vector3df(0.0f,0.0f,0.0f),
  475. const core::vector3df& scale = core::vector3df(1.0f,1.0f,1.0f),
  476. video::SColor vertexColor = video::SColor(255,255,255,255),
  477. s32 maxLOD=5, E_TERRAIN_PATCH_SIZE patchSize=ETPS_17, s32 smoothFactor=0,
  478. bool addAlsoIfHeightmapEmpty = false) = 0;
  479. virtual ITerrainSceneNode* addTerrainSceneNode(
  480. io::IReadFile* heightMapFile,
  481. ISceneNode* parent=0, s32 id=-1,
  482. const core::vector3df& position = core::vector3df(0.0f,0.0f,0.0f),
  483. const core::vector3df& rotation = core::vector3df(0.0f,0.0f,0.0f),
  484. const core::vector3df& scale = core::vector3df(1.0f,1.0f,1.0f),
  485. video::SColor vertexColor = video::SColor(255,255,255,255),
  486. s32 maxLOD=5, E_TERRAIN_PATCH_SIZE patchSize=ETPS_17, s32 smoothFactor=0,
  487. bool addAlsoIfHeightmapEmpty = false) = 0;
  488. virtual ISceneManager* createNewSceneManager(bool cloneContent=false) = 0;
  489. ISceneNodeAnimator.h
  490. Changed signature (made const)
  491. virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
  492. ITexture.h
  493. Changed signature (made const)
  494. virtual bool hasMipMaps() const
  495. IVideoDriver.h
  496. Changed signature (reference param)
  497. virtual void draw3DBox(const core::aabbox3d<f32>& box,
  498. SColor color = SColor(255,255,255,255)) = 0;
  499. Changed signature (added defaults for param)
  500. virtual void draw2DImage(video::ITexture* texture,
  501. const core::position2d<s32>& pos,
  502. const core::array<core::rect<s32> >& sourceRects,
  503. const core::array<s32>& indices,
  504. s32 kerningWidth=0,
  505. const core::rect<s32>* clipRect=0,
  506. SColor color=SColor(255,255,255,255),
  507. bool useAlphaChannelOfTexture=false) = 0;
  508. Changed signature (changed return type)
  509. virtual const SExposedVideoData& getExposedVideoData() = 0;
  510. line3d.h
  511. Changed signature (changed return type)
  512. T getLength() const
  513. matrix4.h
  514. Changed type to template class
  515. template <class T> class CMatrix4
  516. typedef CMatrix4<f32> matrix4;
  517. Changed signature (changed return type)
  518. T& operator()(const s32 row, const s32 col);
  519. const T& operator()(const s32 row, const s32 col) const
  520. T& operator[](u32 index);
  521. const T& operator[](u32 index) const
  522. Changed signature (changed param type)
  523. inline CMatrix4<T>& operator=(const T& scalar);
  524. const T* pointer() const
  525. T* pointer();
  526. CMatrix4<T> operator*(const T& scalar) const;
  527. CMatrix4<T>& operator*=(const T& scalar);
  528. void transformVect(T *out,const core::vector3df &in) const;
  529. void rotateVect(T *out,const core::vector3df &in) const;
  530. void multiplyWith1x4Matrix(T* matrix) const;
  531. CMatrix4<T> interpolate(const core::CMatrix4<T>& b, f32 time) const;
  532. plane3d.h
  533. Renamed method (from existsInterSection)
  534. bool existsIntersection(const plane3d<T>& other) const
  535. quaternion.h
  536. Changed signature (unconst param)
  537. void slerp( quaternion q1, quaternion q2, f32 interpolate );
  538. SExposedVideoData.h
  539. Removed public member (replaced by X11Display and X11Window)
  540. OpenGLLinux.Window;
  541. SIrrCreationParameters.h
  542. Changed public member (changed type for 64bit system support)
  543. void* WindowId;
  544. triangle3d.h
  545. Changed method to private
  546. bool isOnSameSide(const vector3d<T>& p1, const vector3d<T>& p2,
  547. const vector3d<T>& a, const vector3d<T>& b) const
  548. vector2d.h
  549. Changed signature (changed return value)
  550. T getLength() const
  551. T getDistanceFrom(const vector2d<T>& other) const
  552. vector3d.h
  553. Changed signature (changed return value)
  554. T getDistanceFrom(const vector3d<T>& other) const
  555. Changes for Version 1.4
  556. -----------------------
  557. This release had many changes in API method signatures. Many methods have been
  558. made const, also several parameter types were changed. The two most noticeable
  559. changes (which almost every user of the Irrlicht API will come across) are the
  560. renaming of IUnknown to IReferenceCounted and const-ref change of the SEvent
  561. structure of the OnEvent method. Another important change: DirectX8 support is
  562. now by default disabled, enable the define in IrrCompileConfig.h to restore the
  563. old behavior.
  564. IReferenceCounted.h
  565. Renamed Type (from IUnknown). This changed most classes in Irrlicht
  566. class IReferenceCounted
  567. IEventReceiver.h
  568. Changed signature (made const)
  569. virtual bool OnEvent(const SEvent& event) = 0;
  570. IrrCompileConfig.h
  571. DirectX8 support is now by default disabled
  572. CMeshBuffer.h
  573. Removed method
  574. virtual u32 getVertexPitch() const
  575. fast_atof.h
  576. Changed signature to allow optional second parameter
  577. u32 strtol10(const char* in, const char** out=0)
  578. IAnimatedMesh.h
  579. Changed inheritance (instead of IReferenceCounted)
  580. class IAnimatedMesh : public IMesh
  581. Changed signature (made const)
  582. virtual u32 getFrameCount() const = 0;
  583. IAnimatedMeshSceneNode.h
  584. Changed signature (changed param type)
  585. virtual void setCurrentFrame(f32 frame) = 0;
  586. Replaced methods (generalized method getJointNode available)
  587. virtual ISceneNode* getMS3DJointNode(const c8* jointName) = 0;
  588. virtual ISceneNode* getXJointNode(const c8* jointName) = 0;
  589. virtual ISceneNode* getB3DJointNode(const c8* jointName) = 0;
  590. Changed signature (changed return type)
  591. virtual f32 getFrameNr() const = 0;
  592. Changed signature (made const)
  593. virtual bool isReadOnlyMaterials() const = 0;
  594. IAttributeExchangingObject.h
  595. Changed signature (made const)
  596. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const {}
  597. IAttributes.h
  598. Changed signature (made const, changed param type)
  599. virtual u32 getAttributeCount() const = 0;
  600. Changed signature (added param)
  601. virtual bool read(io::IXMLReader* reader, bool readCurrentElementOnly=false, const wchar_t* elementName=0) = 0;
  602. virtual bool write(io::IXMLWriter* writer, bool writeXMLHeader=false, const wchar_t* elementName=0) = 0;
  603. Changed signature (made const-ref param)
  604. virtual void addMatrix(const c8* attributeName, const core::matrix4& v) = 0;
  605. virtual void setAttribute(const c8* attributeName, const core::matrix4& v) = 0;
  606. virtual void setAttribute(s32 index, const core::matrix4& v) = 0;
  607. IBillboardSceneNode.h
  608. Changed signature (made const)
  609. virtual const core::dimension2d<f32>& getSize() const = 0;
  610. virtual void getColor(video::SColor & topColor, video::SColor & bottomColor) const = 0;
  611. ICameraSceneNode.h
  612. Changed signature (made const)
  613. virtual const core::matrix4& getProjectionMatrix() const = 0;
  614. virtual const core::matrix4& getViewMatrix() const = 0;
  615. virtual bool OnEvent(const SEvent& event) = 0;
  616. virtual f32 getNearValue() const = 0;
  617. virtual f32 getFarValue() const = 0;
  618. virtual f32 getAspectRatio() const = 0;
  619. virtual f32 getFOV() const = 0;
  620. virtual bool isInputReceiverEnabled() const = 0;
  621. virtual bool isOrthogonal() const
  622. ICursorControl.h
  623. Changed signature (made const)
  624. virtual bool isVisible() const = 0;
  625. IFileList.h
  626. Changed signature (made const, changed param or return types)
  627. virtual u32 getFileCount() const = 0;
  628. virtual const c8* getFileName(u32 index) const = 0;
  629. virtual const c8* getFullFileName(u32 index) = 0;
  630. virtual bool isDirectory(u32 index) const = 0;
  631. IFileSystem.h 2007-09-17 09:53:10.000000000 +0200
  632. Changed signature (made const method and const-ref param)
  633. virtual core::stringc getAbsolutePath(const core::stringc& filename) const = 0;
  634. virtual core::stringc getFileDir(const core::stringc& filename) const = 0;
  635. Changed signature (made const)
  636. virtual IFileList* createFileList() const = 0;
  637. virtual bool existFile(const c8* filename) const = 0;
  638. IGUIButton.h
  639. Changed signature (made const)
  640. virtual bool isPressed() const = 0;
  641. virtual bool isAlphaChannelUsed() const = 0;
  642. virtual bool isPushButton() const = 0;
  643. virtual bool isDrawingBorder() const = 0;
  644. IGUICheckBox.h
  645. Changed signature (made const)
  646. virtual bool isChecked() const = 0;
  647. IGUIComboBox.h
  648. Changed signature (made const, changed param or return types)
  649. virtual u32 getItemCount() const = 0;
  650. virtual const wchar_t* getItem(u32 idx) const = 0;
  651. virtual s32 getSelected() const = 0;
  652. Changed signature (changed param or return types)
  653. virtual u32 addItem(const wchar_t* text) = 0;
  654. virtual void removeItem(u32 id) = 0;
  655. IGUIContextMenu.h
  656. Changed signature (changed param or return types)
  657. virtual u32 getItemCount() const = 0;
  658. virtual u32 addItem(const wchar_t* text, s32 commandId=-1, bool enabled=true, bool hasSubMenu=false, bool checked=false) = 0;
  659. virtual void setItemText(u32 idx, const wchar_t* text) = 0;
  660. virtual void setItemEnabled(u32 idx, bool enabled) = 0;
  661. virtual void setItemChecked(u32 idx, bool enabled) = 0;
  662. virtual void removeItem(u32 idx) = 0;
  663. virtual void setItemCommandId(u32 idx, s32 id) = 0;
  664. Changed signature (made const, changed param or return types)
  665. virtual const wchar_t* getItemText(u32 idx) const = 0;
  666. virtual bool isItemEnabled(u32 idx) const = 0;
  667. virtual bool isItemChecked(u32 idx) const = 0;
  668. virtual s32 getSelectedItem() const = 0;
  669. virtual s32 getItemCommandId(u32 idx) const = 0;
  670. virtual IGUIContextMenu* getSubMenu(u32 idx) const = 0;
  671. IGUIEditBox.h
  672. Changed signature (changed param or return types)
  673. virtual void setMax(u32 max) = 0;
  674. Changed signature (made const, changed param or return types)
  675. virtual u32 getMax() const = 0;
  676. IGUIElementFactory.h
  677. Changed signature (made const)
  678. virtual s32 getCreatableGUIElementTypeCount() const = 0;
  679. virtual EGUI_ELEMENT_TYPE getCreateableGUIElementType(s32 idx) const = 0;
  680. virtual const c8* getCreateableGUIElementTypeName(s32 idx) const = 0;
  681. virtual const c8* getCreateableGUIElementTypeName(EGUI_ELEMENT_TYPE type) const = 0;
  682. IGUIElement.h
  683. Changed signature (made const)
  684. bool isNotClipped() const
  685. virtual bool isVisible() const
  686. virtual bool isSubElement() const
  687. virtual bool isEnabled() const
  688. virtual const wchar_t* getText() const
  689. virtual s32 getID() const
  690. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const
  691. Changed signature (made const-ref param or return type)
  692. virtual const core::stringw& getToolTipText() const
  693. virtual bool OnEvent(const SEvent& event)
  694. IGUIEnvironment.h
  695. Changed signature (changed return type)
  696. virtual bool setFocus(IGUIElement* element) = 0;
  697. virtual bool removeFocus(IGUIElement* element) = 0;
  698. Changed signature (made const)
  699. virtual IGUIElement* getFocus() const = 0;
  700. virtual bool hasFocus(IGUIElement* element) const = 0;
  701. virtual video::IVideoDriver* getVideoDriver() const = 0;
  702. virtual io::IFileSystem* getFileSystem() const = 0;
  703. virtual IOSOperator* getOSOperator() const = 0;
  704. virtual IGUISkin* getSkin() const = 0;
  705. virtual IGUIFont* getBuiltInFont() const = 0;
  706. virtual IGUIElementFactory* getDefaultGUIElementFactory() const = 0;
  707. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const =0;
  708. Changed signature (made const-ref param or return type)
  709. virtual bool postEventFromUser(const SEvent& event) = 0;
  710. Changed signature (made const, changed param or return types)
  711. virtual u32 getRegisteredGUIElementFactoryCount() const = 0;
  712. virtual IGUIElementFactory* getGUIElementFactory(u32 index) const = 0;
  713. IGUIFileOpenDialog.h
  714. Changed signature (made const)
  715. virtual const wchar_t* getFileName() const = 0;
  716. IGUIFontBitmap.h
  717. Changed signature (made const)
  718. virtual IGUISpriteBank* getSpriteBank() const = 0;
  719. virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0;
  720. virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0;
  721. IGUIFont.h
  722. Changed signature (made const)
  723. virtual core::dimension2d<s32> getDimension(const wchar_t* text) const = 0;
  724. virtual s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const = 0;
  725. virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0;
  726. virtual s32 getKerningHeight() const = 0;
  727. IGUIListBox.h
  728. Changed signature (made const, changed param or return types)
  729. virtual u32 getItemCount() const = 0;
  730. virtual const wchar_t* getListItem(u32 id) const = 0;
  731. virtual s32 getIcon(u32 index) const = 0;
  732. Changed signature (changed param or return types)
  733. virtual u32 addItem(const wchar_t* text) = 0;
  734. virtual u32 addItem(const wchar_t* text, s32 icon) = 0;
  735. virtual void removeItem(u32 index) = 0;
  736. Changed signature (made const)
  737. virtual s32 getSelected() const = 0;
  738. IGUIMeshViewer.h
  739. Changed signature (made const)
  740. virtual const video::SMaterial& getMaterial() const = 0;
  741. IGUIScrollBar.h
  742. Changed signature (made const)
  743. virtual s32 getMax() const = 0;
  744. virtual s32 getSmallStep() const = 0;
  745. virtual s32 getPos() const = 0;
  746. IGUISkin.h
  747. Changed signature (made const)
  748. virtual video::SColor getColor(EGUI_DEFAULT_COLOR color) const = 0;
  749. virtual s32 getSize(EGUI_DEFAULT_SIZE size) const = 0;
  750. virtual const wchar_t* getDefaultText(EGUI_DEFAULT_TEXT text) const = 0;
  751. virtual IGUIFont* getFont(EGUI_DEFAULT_FONT which=EGDF_DEFAULT) const = 0;
  752. virtual IGUISpriteBank* getSpriteBank() const = 0;
  753. virtual u32 getIcon(EGUI_DEFAULT_ICON icon) const = 0;
  754. IGUISpriteBank.h
  755. Changed signature (made const)
  756. virtual u32 getTextureCount() const = 0;
  757. virtual video::ITexture* getTexture(u32 index) const = 0;
  758. IGUIStaticText.h
  759. Changed signature (made const)
  760. virtual IGUIFont* getOverrideFont(void) const = 0;
  761. virtual video::SColor const& getOverrideColor(void) const = 0;
  762. virtual bool isOverrideColorEnabled(void) const = 0;
  763. virtual bool isWordWrapEnabled(void) const = 0;
  764. virtual s32 getTextHeight() const = 0;
  765. virtual s32 getTextWidth(void) const = 0;
  766. IGUITabControl.h
  767. Changed signature (made const)
  768. virtual s32 getNumber() const = 0;
  769. virtual s32 getTabCount() const = 0;
  770. virtual IGUITab* getTab(s32 idx) const = 0;
  771. virtual s32 getActiveTab() const = 0;
  772. IGUIWindow.h
  773. Changed signature (made const)
  774. virtual IGUIButton* getCloseButton() const = 0;
  775. virtual IGUIButton* getMinimizeButton() const = 0;
  776. virtual IGUIButton* getMaximizeButton() const = 0;
  777. IImageLoader.h
  778. Changed signature (made const)
  779. virtual bool isALoadableFileExtension(const c8* fileName) const = 0;
  780. virtual bool isALoadableFileFormat(io::IReadFile* file) const = 0;
  781. virtual IImage* loadImage(io::IReadFile* file) const = 0;
  782. IImageWriter.h
  783. Changed signature (made const)
  784. virtual bool isAWriteableFileExtension(const c8* fileName) const = 0;
  785. virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param = 0) const = 0;
  786. ILogger.h
  787. Changed signature (made const)
  788. virtual ELOG_LEVEL getLogLevel() const = 0;
  789. IMaterialRenderer.h
  790. Changed signature (made const-ref param)
  791. virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates, IMaterialRendererServices* services) {};
  792. Changed signature (made const)
  793. virtual bool isTransparent() const { return false; }
  794. virtual s32 getRenderCapability() const { return 0; }
  795. IMesh.h
  796. Changed signature (made const)
  797. virtual IMeshBuffer* getMeshBuffer( const video::SMaterial &material) const = 0;
  798. IMeshLoader.h
  799. Changed signature (made const)
  800. virtual bool isALoadableFileExtension(const c8* fileName) const = 0;
  801. IMeshManipulator.h
  802. Removed method (now in IMeshBuffer)
  803. virtual void recalculateBoundingBox(scene::IMeshBuffer* buffer) const
  804. IMeshSceneNode.h
  805. Changed signature (made const)
  806. virtual bool isReadOnlyMaterials() const = 0;
  807. IOSOperator.h
  808. Changed signature (made const)
  809. virtual const wchar_t* getOperationSystemVersion() const = 0;
  810. virtual void copyToClipboard(const c8* text) const = 0;
  811. virtual c8* getTextFromClipboard() const = 0;
  812. virtual bool getProcessorSpeedMHz(u32* MHz) const = 0;
  813. virtual bool getSystemMemory(u32* Total, u32* Avail) const = 0;
  814. IParticleAffector.h
  815. Changed signature (made const)
  816. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const {}
  817. IParticleEmitter.h
  818. Changed signature (made const)
  819. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const {}
  820. IParticleSystemSceneNode.h
  821. Changed signature (changed return type, changed param types)
  822. virtual IParticlePointEmitter* createPointEmitter(
  823. const core::vector3df& direction = core::vector3df(0.0f,0.03f,0.0f),
  824. u32 minParticlesPerSecond = 5,
  825. u32 maxParticlesPerSecond = 10,
  826. const video::SColor& minStartColor = video::SColor(255,0,0,0),
  827. const video::SColor& maxStartColor = video::SColor(255,255,255,255),
  828. u32 lifeTimeMin=2000, u32 lifeTimeMax=4000,
  829. s32 maxAngleDegrees=0) = 0;
  830. virtual IParticleEmitter* createBoxEmitter(
  831. const core::aabbox3df& box = core::aabbox3df(-10,28,-10,10,30,10),
  832. const core::vector3df& direction = core::vector3df(0.0f,0.03f,0.0f),
  833. u32 minParticlesPerSecond = 5,
  834. u32 maxParticlesPerSecond = 10,
  835. const video::SColor& minStartColor = video::SColor(255,0,0,0),
  836. const video::SColor& maxStartColor = video::SColor(255,255,255,255),
  837. u32 lifeTimeMin=2000, u32 lifeTimeMax=4000,
  838. s32 maxAngleDegrees=0) = 0;
  839. virtual IParticleFadeOutAffector* createFadeOutParticleAffector(
  840. const video::SColor& targetColor = video::SColor(0,0,0,0),
  841. u32 timeNeededToFadeOut = 1000) = 0;
  842. virtual IParticleGravityAffector* createGravityAffector(
  843. const core::vector3df& gravity = core::vector3df(0.0f,-0.03f,0.0f),
  844. u32 timeForceLost = 1000) = 0;
  845. IQ3Shader.h
  846. Removed method
  847. bool operator < ( const SVariable &other ) const
  848. IReadFile.h
  849. Changed param types (adapt the correct C-API for file positions)
  850. virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
  851. virtual long getSize() const = 0;
  852. virtual long getPos() const = 0;
  853. IReadFile* createLimitReadFile(const c8* fileName, IReadFile* alreadyOpenedFile, long areaSize);
  854. IReadFile* createMemoryReadFile(void* memory, long size, const c8* fileName, bool deleteMemoryWhenDropped);
  855. Changed signature (made const)
  856. virtual const c8* getFileName() const = 0;
  857. IrrlichtDevice.h
  858. Changed signature (made const)
  859. virtual bool isWindowActive() const = 0;
  860. virtual const c8* getVersion() const = 0;
  861. Changed signature (made const-ref param)
  862. virtual void postEventFromUser(const SEvent& event) = 0;
  863. irrList.h
  864. Changed some structures in order to incorporate a ConstIterator class.
  865. Iterator begin()
  866. ConstIterator begin() const
  867. Iterator end()
  868. ConstIterator end() const
  869. Iterator getLast()
  870. ConstIterator getLast() const
  871. void insert_after(const Iterator& it, const T& element)
  872. void insert_before(const Iterator& it, const T& element)
  873. irrMath.h
  874. Changed signature (Use const references for better class handling)
  875. inline const T& min_(const T& a, const T& b)
  876. inline const T& min_(const T& a, const T& b, const T& c)
  877. inline const T& max_(const T& a, const T& b)
  878. inline const T& max_(const T& a, const T& b, const T& c)
  879. inline T abs_(const T& a)
  880. inline T lerp(const T& a, const T& b, const f32 t)
  881. inline const T clamp (const T& value, const T& low, const T& high)
  882. irrString.h
  883. Changed signature (made proper const method)
  884. T& operator [](const u32 index)
  885. const T& operator [](const u32 index) const
  886. irrXML.h
  887. Changed signature (adapt the correct C-API for file positions, made const)
  888. virtual long getSize() const = 0;
  889. Changed signature (changed param types)
  890. virtual unsigned int getAttributeCount() const = 0;
  891. ISceneManager.h
  892. Changed signature (changed param types)
  893. virtual IAnimatedMesh* addHillPlaneMesh(const c8* name,
  894. const core::dimension2d<f32>& tileSize, const core::dimension2d<u32>& tileCount,
  895. video::SMaterial* material = 0, f32 hillHeight = 0.0f,
  896. const core::dimension2d<f32>& countHills = core::dimension2d<f32>(0.0f, 0.0f),
  897. const core::dimension2d<f32>& textureRepeatCount = core::dimension2d<f32>(1.0f, 1.0f)) = 0;
  898. Changed signature (changed param types and order)
  899. virtual IAnimatedMesh* addArrowMesh(const c8* name,
  900. video::SColor vtxColor0=0xFFFFFFFF,
  901. video::SColor vtxColor1=0xFFFFFFFF,
  902. u32 tesselationCylinder=4, u32 tesselationCone=8,
  903. f32 height=1.f, f32 cylinderHeight=0.6f,
  904. f32 width0=0.05f, f32 width1=0.3f) = 0;
  905. Changed signature (changed param types)
  906. virtual bool postEventFromUser(const SEvent& event) = 0;
  907. virtual ISceneNodeFactory* getSceneNodeFactory(u32 index) = 0;
  908. virtual ISceneNodeAnimatorFactory* getSceneNodeAnimatorFactory(u32 index) = 0;
  909. Changed signature (made const)
  910. virtual E_SCENE_NODE_RENDER_PASS getSceneNodeRenderPass() const = 0;
  911. Changed signature (changed param types, made const)
  912. virtual u32 getRegisteredSceneNodeFactoryCount() const = 0;
  913. virtual u32 getRegisteredSceneNodeAnimatorFactoryCount() const = 0;
  914. virtual const video::SColorf& getAmbientLight() const = 0;
  915. ISceneNodeAnimatorCollisionResponse.h
  916. Changed signature (made const)
  917. virtual bool isFalling() const = 0;
  918. ISceneNodeAnimatorFactory.h
  919. Changed signature (changed param types, made const)
  920. virtual u32 getCreatableSceneNodeAnimatorTypeCount() const = 0;
  921. virtual ESCENE_NODE_ANIMATOR_TYPE getCreateableSceneNodeAnimatorType(u32 idx) const = 0;
  922. virtual const c8* getCreateableSceneNodeAnimatorTypeName(u32 idx) const = 0;
  923. Changed signature (made const)
  924. virtual const c8* getCreateableSceneNodeAnimatorTypeName(ESCENE_NODE_ANIMATOR_TYPE type) const = 0;
  925. ISceneNodeFactory.h
  926. Changed signature (changed param types, made const)
  927. virtual u32 getCreatableSceneNodeTypeCount() const = 0;
  928. virtual ESCENE_NODE_TYPE getCreateableSceneNodeType(u32 idx) const = 0;
  929. virtual const c8* getCreateableSceneNodeTypeName(u32 idx) const = 0;
  930. Changed signature (made const)
  931. virtual const c8* getCreateableSceneNodeTypeName(ESCENE_NODE_TYPE type) const = 0;
  932. ISceneNode.h
  933. Changed signature (made const)
  934. virtual u32 getMaterialCount() const
  935. bool isDebugObject() const
  936. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const
  937. IShadowVolumeSceneNode.h
  938. Changed signature (made const param)
  939. virtual void setMeshToRenderFrom(const IMesh* mesh) = 0;
  940. ITerrainSceneNode.h
  941. Changed signature (made const)
  942. virtual u32 getIndexCount() const = 0;
  943. virtual void getMeshBufferForLOD(SMeshBufferLightMap& mb, s32 LOD) const = 0;
  944. virtual s32 getCurrentLODOfPatches(core::array<s32>& LODs) const = 0;
  945. virtual f32 getHeight( f32 x, f32 y ) const = 0;
  946. Changed signature (made const, made const-ref param)
  947. virtual const core::vector3df& getTerrainCenter() const = 0;
  948. ITexture.h
  949. Changed signature (made const)
  950. virtual const core::dimension2d<s32>& getOriginalSize() const = 0;
  951. virtual const core::dimension2d<s32>& getSize() const = 0;
  952. virtual E_DRIVER_TYPE getDriverType() const = 0;
  953. const core::stringc& getName() const { return Name; }
  954. ITimer.h
  955. Changed signature (made const)
  956. virtual u32 getRealTime() const = 0;
  957. virtual u32 getTime() const = 0;
  958. virtual f32 getSpeed() const = 0;
  959. virtual bool isStopped() const = 0;
  960. ITriangleSelector.h
  961. Changed signature (made const)
  962. virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
  963. s32& outTriangleCount, const core::matrix4* transform=0) const = 0;
  964. virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
  965. s32& outTriangleCount, const core::aabbox3d<f32>& box,
  966. const core::matrix4* transform=0) const = 0;
  967. virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
  968. s32& outTriangleCount, const core::line3d<f32>& line,
  969. const core::matrix4* transform=0) const = 0;
  970. IVideoDriver.h
  971. Changed signature (made const, changed param type)
  972. virtual u32 getTextureCount() const = 0;
  973. Changed signature (made const param) in all draw2DImage methods
  974. virtual void draw2DImage(const video::ITexture* texture,
  975. Changed signature (made const-ref param, made const)
  976. virtual const core::dimension2d<s32>& getScreenSize() const = 0;
  977. virtual const core::dimension2d<s32>& getCurrentRenderTargetSize() const = 0;
  978. Changed signature (made const)
  979. virtual bool queryFeature(E_VIDEO_DRIVER_FEATURE feature) const = 0;
  980. virtual const core::matrix4& getTransform(E_TRANSFORMATION_STATE state) const = 0;
  981. virtual ITexture* createRenderTargetTexture(const core::dimension2d<s32>& size, const c8* name = 0) = 0;
  982. virtual void makeColorKeyTexture(video::ITexture* texture, video::SColor color) const = 0;
  983. virtual void makeColorKeyTexture(video::ITexture* texture,
  984. core::position2d<s32> colorKeyPixelPos) const = 0;
  985. virtual void makeNormalMapTexture(video::ITexture* texture, f32 amplitude=1.0f) const = 0;
  986. virtual s32 getFPS() const = 0;
  987. virtual u32 getPrimitiveCountDrawn( u32 param = 0 ) const = 0;
  988. virtual u32 getMaximalDynamicLightAmount() const = 0;
  989. virtual u32 getDynamicLightCount() const = 0;
  990. virtual const SLight& getDynamicLight(u32 idx) const = 0;
  991. virtual const wchar_t* getName() const = 0;
  992. virtual u32 getMaximalPrimitiveCount() const = 0;
  993. virtual bool getTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag) const = 0;
  994. virtual u32 getMaterialRendererCount() const = 0;
  995. virtual const c8* getMaterialRendererName(u32 idx) const = 0;
  996. virtual E_DRIVER_TYPE getDriverType() const = 0;
  997. IWriteFile.h
  998. Changed signature (changed param type)
  999. virtual s32 write(const void* buffer, u32 sizeToWrite) = 0;
  1000. virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
  1001. Changed signature (changed param type, made const)
  1002. virtual long getPos() const = 0;
  1003. Changed signature (made const)
  1004. virtual const c8* getFileName() const = 0;
  1005. line2d.h
  1006. Changed signature (made const)
  1007. vector2d<T> getUnitVector() const
  1008. f64 getAngleWith(const line2d<T>& l) const
  1009. T getPointOrientation(const vector2d<T>& point) const
  1010. bool isPointOnLine(const vector2d<T>& point) const
  1011. matrix4.h
  1012. Changed signature (made template param)
  1013. void setTranslation( const vector3d<T>& translation );
  1014. vector3d<T> getTranslation() const;
  1015. void setInverseTranslation( const vector3d<T>& translation );
  1016. inline void setRotationRadians( const vector3d<T>& rotation );
  1017. void setRotationDegrees( const vector3d<T>& rotation );
  1018. core::vector3d<T> getRotationDegrees() const;
  1019. inline void setInverseRotationRadians( const vector3d<T>& rotation );
  1020. void setInverseRotationDegrees( const vector3d<T>& rotation );
  1021. void setScale( const vector3d<T>& scale );
  1022. core::vector3d<T> getScale() const;
  1023. rect.h
  1024. Changed signature (made non-const ref param, C++ conformance)
  1025. rect<T>& operator+=(const position2d<T>& pos)
  1026. rect<T>& operator-=(const position2d<T>& pos)
  1027. S3DVertex.h
  1028. Changed inheritance (S3DVertex is now base class of other vertex types)
  1029. struct S3DVertex2TCoords : public S3DVertex
  1030. struct S3DVertexTangents : public S3DVertex
  1031. SAnimatedMesh.h
  1032. Changed signature (changed param type, made const)
  1033. virtual u32 getFrameCount() const
  1034. SColor.h
  1035. Changed signature (changed param type)
  1036. inline u32 A1R5G5B5toA8R8G8B8(u16 color)
  1037. SLight.h
  1038. Removed attribute (use LightSceneNode position instead)
  1039. core::vector3df Position;
  1040. SMaterial.h
  1041. Changed attribute structure (texture layer properties are now in thenew TextureLayer array). This changes access to Textures, TextureMatrix, TextureWrap, and the filter settings, which are also per-layer now.
  1042. SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES];
  1043. vector3d.h
  1044. Changed signature (made template param)
  1045. bool equals(const vector3d<T>& other, const T tolerance = (T)ROUNDING_ERROR_32 ) const
  1046. Changes for Version 1.4.1
  1047. -------------------------
  1048. Since this version is a backward compatible bugfix release, the API changes are only a few. None of them should result
  1049. in uncompilable code. Newly found warnings might point out wrongly used variables, additional casts or type changes in the
  1050. app should easily fix that. The only change which might go unnoticed by the compiler, but affect the application is the
  1051. changed initialization in SColorf. This was done to synchronize with other constructors from SColorf and SColor, though,
  1052. so the expectations are now much better met.
  1053. Also, OSX users have to adjust the defines in IrrCompileConfig, as we now also have OSX defines in Irrlicht style. It's now
  1054. even possible to build with X11 support under OSX without changes in the device code.
  1055. SColor.h
  1056. Changed signature (SColorf is now default initialized to alpha=1.0f)
  1057. SColorf(f32 r=0.f, f32 g=0.f, f32 b=0.f, f32 a=1.f) : r(r), g(g), b(b), a(a) {}
  1058. IrrCompileConfig.h
  1059. Split the OSX define into platform and device (from old MACOSX define)
  1060. _IRR_OSX_PLATFORM_ for Apple systems running OSX
  1061. _IRR_USE_OSX_DEVICE_ for Cocoa native windowing on OSX
  1062. ISceneManager.h
  1063. Added new overload for getMesh with IReadFile instead of filename.
  1064. virtual IAnimatedMesh* getMesh(io::IReadFile* file) = 0;
  1065. irrMath.h
  1066. Renamed method setbit
  1067. REALINLINE void setbit_cond ( u32 &state, s32 condition, u32 mask )
  1068. ISceneNode.h
  1069. Changed signature (because the debug data enum values can be OR'ed to enable multiple debug data types)
  1070. virtual void setDebugDataVisible(s32 state)
  1071. s32 isDebugDataVisible() const
  1072. s32 DebugDataVisible;
  1073. matrix4.h
  1074. Changed signature (Added return values to some methods)
  1075. inline CMatrix4<T>& setbyproduct(const CMatrix4<T>& other_a,const CMatrix4<T>& other_b );
  1076. CMatrix4<T>& setbyproduct_nocheck(const CMatrix4<T>& other_a,const CMatrix4<T>& other_b );
  1077. inline CMatrix4<T>& makeIdentity();
  1078. CMatrix4<T>& setTranslation( const vector3d<T>& translation );
  1079. CMatrix4<T>& setInverseTranslation( const vector3d<T>& translation );
  1080. inline CMatrix4<T>& setRotationRadians( const vector3d<T>& rotation );
  1081. CMatrix4<T>& setRotationDegrees( const vector3d<T>& rotation );
  1082. inline CMatrix4<T>& setInverseRotationRadians( const vector3d<T>& rotation );
  1083. CMatrix4<T>& setInverseRotationDegrees( const vector3d<T>& rotation );
  1084. CMatrix4<T>& setScale( const vector3d<T>& scale );
  1085. CMatrix4<T>& buildProjectionMatrixPerspectiveFovRH(f32 fieldOfViewRadians, f32 aspectRatio, f32 zNear, f32 zFar);
  1086. CMatrix4<T>& buildProjectionMatrixPerspectiveFovLH(f32 fieldOfViewRadians, f32 aspectRatio, f32 zNear, f32 zFar);
  1087. CMatrix4<T>& buildProjectionMatrixPerspectiveRH(f32 widthOfViewVolume, f32 heightOfViewVolume, f32 zNear, f32 zFar);
  1088. CMatrix4<T>& buildProjectionMatrixPerspectiveLH(f32 widthOfViewVolume, f32 heightOfViewVolume, f32 zNear, f32 zFar);
  1089. CMatrix4<T>& buildProjectionMatrixOrthoLH(f32 widthOfViewVolume, f32 heightOfViewVolume, f32 zNear, f32 zFar);
  1090. CMatrix4<T>& buildProjectionMatrixOrthoRH(f32 widthOfViewVolume, f32 heightOfViewVolume, f32 zNear, f32 zFar);
  1091. CMatrix4<T>& buildCameraLookAtMatrixLH(...)
  1092. CMatrix4<T>& buildCameraLookAtMatrixRH(...)
  1093. CMatrix4<T>& buildShadowMatrix(const core::vector3df& light, core::plane3df plane, f32 point=1.0f);
  1094. CMatrix4<T>& buildNDCToDCMatrix( const core::rect<s32>& area, f32 zScale);
  1095. CMatrix4<T>& setTextureScale( f32 sx, f32 sy );
  1096. CMatrix4<T>& setTextureRotationCenter( f32 radAngle );
  1097. CMatrix4<T>& setTextureScaleCenter( f32 sx, f32 sy );
  1098. CMatrix4<T>& setTextureTranslate( f32 x, f32 y );
  1099. CMatrix4<T>& setM(const T* data);
  1100. Added overload (for one scale value for all axes)
  1101. CMatrix4<T>& setScale( const T scale ) { return setScale(core::vector3d<T>(scale,scale,scale)); }
  1102. S3DVertex.h
  1103. Added operator
  1104. bool operator<(const S3DVertex& other) const
  1105. bool operator<(const S3DVertex2TCoords& other) const
  1106. bool operator<(const S3DVertexTangents& other) const
  1107. irrString.h
  1108. Changed signature (int->u32, negative length didn't make sense)
  1109. bool equalsn(const string<T>& other, u32 n) const
  1110. bool equalsn(const T* const str, u32 n) const
  1111. New overload/missing method (completing the findLast... and find...Char methods)
  1112. s32 findLastChar(const T* const c, u32 count) const
  1113. Changed signature (Added return value)
  1114. string<T>& trim()
  1115. Changes for Version 1.4.2
  1116. -------------------------
  1117. This is once more a bugfix release of the 1.4 branch, and hence pretty API-consistent and backward compatible. The major reason to publish this release is the OpenGL bug, which made several OpenGL 2.x drivers run in SW emulation.
  1118. However, we also introduced some driver consistency fixes, which might affect your application's behavior. So read through the next points thoroughly.
  1119. SceneParameters.h (and general video driver behavior)
  1120. The way Irrlicht handles zbuffer writing with transparent materials has changed. This was an issue ever since, because the default behavior in Irrlicht is to disable writing to the z-buffer for all really transparent, i.e. blending materials. This avoids problems with intersecting faces, but can also break renderings. And this is now consistent for both OpenGL and Direct3D.
  1121. If transparent materials should use the SMaterial flag for ZWriteEnable just as other material types use the newly introduced attribute scene::ALLOW_ZWRITE_ON_TRANSPARENT like this:
  1122. SceneManager->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT, true);
  1123. All transparent materials will henceforth work as specified by the material flag, until the scenemanager attribute is set to false.
  1124. SMaterialLayer.h
  1125. The texture matrix now uses irrAllocator for memory handling. This shouldn't be noticeable from the user application (besides fixed heap corruptions on Windows machines), but is still mentioned for completeness.
  1126. ISceneNode.h
  1127. Documentation error. The docs said that children of a scene node are not visible if the node itself is set to visible. This is of course wrong, children inherit non-visibility of the parent and are hence invisible if the parent is. If the parent is visible, the visibility flag of the child determines its status.
  1128. SColor.h
  1129. Removed methods (use the unsigned versions and cast in your app if necessary)
  1130. inline s32 getRedSigned(u16 color)
  1131. inline s32 getGreenSigned(u16 color)
  1132. inline s32 getBlueSigned(u16 color)
  1133. IParticleSystemSceneNode.h
  1134. Changed default values (the old direction default was no real direction)
  1135. virtual IParticleAnimatedMeshSceneNodeEmitter* createAnimatedMeshSceneNodeEmitter(...)
  1136. virtual IParticleCylinderEmitter* createCylinderEmitter(...)
  1137. virtual IParticleMeshEmitter* createMeshEmitter(...)
  1138. IBoneSceneNode.h
  1139. Changed signature (Made const)
  1140. virtual E_BONE_SKINNING_SPACE getSkinningSpace() const=0;
  1141. IrrlichtDevice.h
  1142. Changed signature (Return value bool instead of void). Returns whether the event has been handled somewhere.
  1143. virtual bool postEventFromUser(const SEvent& event) = 0;
  1144. Changes for Version 1.5
  1145. -----------------------
  1146. Another major release, so expect API breaks at several places. The changes
  1147. herein are described as a difference to Irrlicht 1.4.2.
  1148. The most noticeable changes are the speed factor of the FPS camera (now units/ms
  1149. instead of units/s, so divide the parameter by 1000.f) and the new interfaces
  1150. of the camera nodes, based on scene node animators. Custom camera nodes should
  1151. be adpated to this new scheme, although they might still work. Also, particle
  1152. sizes are now set and handled by the emitters, which requires a change of the
  1153. particle system constructor call or adaption of the setParticleSize method to
  1154. work on the emitters. A deprecation method is issued if the old scheme is used.
  1155. Light setting has also changed, the SLight struct is used in even less
  1156. situations than before, instead use methods in ILightSceneNode.
  1157. Other changes did change major parts of the underlying structures, but might go
  1158. unnoticed on the user level. This includes 32bit indices and Vertex Buffer
  1159. Objects. However, VBOs require the user to call setDirty on Meshes or
  1160. MeshBuffers after changes to the vertex or index data. The all need only to be
  1161. done once before the next render call, but again after subsequent changes later
  1162. on.
  1163. All Mesh types and MeshBuffers:
  1164. New methods for VBO support. Once VBOs are enabled for a meshbuffer, changes
  1165. will only be effective after a call to setDirty(). VBOs are enabled by default
  1166. for some scene nodes.
  1167. virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX);
  1168. All MeshBuffers:
  1169. Due to the 32bit support, it might happen that indices are stored as 32bit integers. The actual index type can be queried from a mesh buffer.
  1170. virtual video::E_INDEX_TYPE getIndexType() const
  1171. IrrCompileConfig.h
  1172. Some new defines for configuring Irrlicht
  1173. _IRR_USE_WINDOWS_CE_DEVICE_ for Windows CE API based device
  1174. _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ to enable joystick support (enabled by default)
  1175. _IRR_COMPILE_WITH_LWO_LOADER_ to enable the LWO mesh loader (enabled by default)
  1176. _IRR_COMPILE_WITH_OBJ_WRITER_ to enable the OBJ mesh writer (enabled by default)
  1177. _IRR_COMPILE_WITH_WAL_LOADER_ to enable the WAL image loader (enabled by default)
  1178. _IRR_USE_NVIDIA_PERFHUD_ for support of the PerfHUD tool (disabled by default)
  1179. SceneParameters.h
  1180. New parameter scene::OBJ_LOADER_IGNORE_GROUPS, which allows to ignore the group structure of obj files. It's disabled by default, meaning obj groups will be represented by separate meshbuffers.
  1181. SColor.h
  1182. Renamed method names of the SColorHSL class
  1183. void fromRGB(const SColor &color);
  1184. void toRGB(SColor &color) const;
  1185. ITexture.h
  1186. Added new parameter
  1187. virtual void* lock(bool readOnly = false) = 0;
  1188. IMeshManipulator.h
  1189. Renamed methods (the old ones still exist, but are deprecated). The new methods also work on meshbuffers, not just meshes.
  1190. (renamed from scaleMesh)
  1191. virtual void scale(IMesh* mesh, const core::vector3df& factor) const = 0;
  1192. (renamed from transformMesh)
  1193. virtual void transform(IMesh* mesh, const core::matrix4& m) const = 0;
  1194. Changed signature (Added new parameters to adjust the algorithm)
  1195. virtual IMesh* createMeshWithTangents(IMesh* mesh, bool recalculateNormals=false, bool smooth=false, bool angleWeighted=false) const = 0;
  1196. IBillboardTextSceneNode.h
  1197. New interface replacing the multiple inheritance from bliiboard and text scene node previously used by the billboard text scene node.
  1198. IParticleSystemSceneNode.h
  1199. All emitters have minStartSize and maxStartSize parameters now, since partice size is handled by the emitters now.
  1200. Default value added
  1201. virtual void setParticlesAreGlobal(bool global=true) = 0;
  1202. fast_atof.h
  1203. Signature change (return value changed from u32)
  1204. inline s32 strtol10(const char* in, const char** out=0)
  1205. Signature change (parameter changed from float)
  1206. inline const char* fast_atof_move( const char * in, f32 & out)
  1207. IAnimatedMeshSceneNode.h
  1208. Added new parameter (dummy node used for simplifying shadow calculation)
  1209. virtual IShadowVolumeSceneNode* addShadowVolumeSceneNode(const IMesh* shadowMesh=0,
  1210. s32 id=-1, bool zfailmethod=true, f32 infinity=10000.0f) = 0;
  1211. ISceneManager.h
  1212. Removed extra render passes for quake shaders
  1213. Changed scene node from ISceneNode to IMeshSceneNode
  1214. virtual IMeshSceneNode* addCubeSceneNode(f32 size=10.0f, ISceneNode* parent=0, s32 id=-1, ...)
  1215. virtual IMeshSceneNode* addSphereSceneNode(f32 radius=5.0f, s32 polyCount=16, ...)
  1216. Changed default value (from 256 to 512, for efficiency on common gfx hardware)
  1217. virtual ISceneNode* addOctTreeSceneNode(IAnimatedMesh* mesh, ISceneNode* parent=0,
  1218. s32 id=-1, s32 minimalPolysPerNode=512, bool alsoAddIfMeshPointerZero=false) = 0;
  1219. Changed default value (from 500.f, to adapt the changed speed scale)
  1220. virtual ICameraSceneNode* addCameraSceneNodeFPS(ISceneNode* parent = 0,
  1221. f32 rotateSpeed = 100.0f, f32 moveSpeed = .5f, s32 id=-1, ...)
  1222. Added default values
  1223. virtual ISceneNode* addSkyDomeSceneNode(video::ITexture* texture,
  1224. u32 horiRes=16, u32 vertRes=8,
  1225. f64 texturePercentage=0.9, f64 spherePercentage=2.0,
  1226. ISceneNode* parent=0, s32 id=-1) = 0;
  1227. Changed return value (from ITextSceneNode, due to changed inheritance)
  1228. virtual IBillboardTextSceneNode* addBillboardTextSceneNode( gui::IGUIFont* font, const wchar_t* text, ...)
  1229. Changed default value (gravity, from -100.f)
  1230. virtual ISceneNodeAnimatorCollisionResponse* createCollisionResponseAnimator(
  1231. ITriangleSelector* world, ISceneNode* sceneNode,
  1232. const core::vector3df& ellipsoidRadius = core::vector3df(30,60,30),
  1233. const core::vector3df& gravityPerSecond = core::vector3df(0,-10.0f,0),
  1234. const core::vector3df& ellipsoidTranslation = core::vector3df(0,0,0),
  1235. f32 slidingValue = 0.0005f) = 0;
  1236. ISceneNodeAnimator.h
  1237. Changed inheritance (for interactive animators)
  1238. class ISceneNodeAnimator : public io::IAttributeExchangingObject, public IEventReceiver
  1239. Changed to pure virtual (bug fix)
  1240. virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0) = 0;
  1241. IVideoModeList.h
  1242. Changed return value (constification)
  1243. virtual const core::dimension2d<s32>& getDesktopResolution() const = 0;
  1244. IBoneSceneNode.h
  1245. Deprecation: Use getName instead.
  1246. virtual const c8* getBoneName() const;
  1247. vector3d.h
  1248. Changed return value (return *this)
  1249. vector3d<T>& set(const T nx, const T ny, const T nz) {X=nx; Y=ny; Z=nz; return *this;}
  1250. vector3d<T>& set(const vector3d<T>& p) {X=p.X; Y=p.Y; Z=p.Z;return *this;}
  1251. vector3d<T>& setLength(T newlength)
  1252. vector3d<T>& invert()
  1253. Added default value
  1254. void rotateXZBy(f64 degrees, const vector3d<T>& center=vector3d<T>())
  1255. void rotateXYBy(f64 degrees, const vector3d<T>& center=vector3d<T>())
  1256. void rotateYZBy(f64 degrees, const vector3d<T>& center=vector3d<T>())
  1257. Changed parameter type (interpolation factor must not be integral)
  1258. vector3d<T> getInterpolated(const vector3d<T>& other, f64 d) const
  1259. vector3d<T> getInterpolated_quadratic(const vector3d<T>& v2, const vector3d<T>& v3, f64 d) const
  1260. Method made const
  1261. vector3d<T> getHorizontalAngle() const
  1262. SLight.h
  1263. Attenuation can be overridden by ILightSceneMethod setRadius() Attenuation will
  1264. change to (0,1.f/radius,0). Can be overridden after radius was set.
  1265. The following members are read-only now:
  1266. f32 Radius;
  1267. E_LIGHT_TYPE Type;
  1268. bool CastShadows;
  1269. ITerrainSceneNode.h
  1270. Parameter type changed (diue to possible 32bit indices)
  1271. virtual void getMeshBufferForLOD(IDynamicMeshBuffer& mb, s32 LOD=0) const =0;
  1272. Added dafault value (highest detail)
  1273. virtual void setLODOfPatch(s32 patchX, s32 patchZ, s32 LOD=0) =0;
  1274. SExposedVideoData.h
  1275. Changed member attributes (from s32, to fix 64bit architecture problems)
  1276. void* HWnd;
  1277. void* HDc;
  1278. void* HRc;
  1279. void* HWnd;
  1280. IAnimatedMeshMD3.h
  1281. Changed return value (constification)
  1282. const SMD3QuaterionTag& operator[](u32 index) const
  1283. IQ3Shader.h
  1284. Changed default q3 shader values (from LIGHTMAP_M2)
  1285. const video::E_MATERIAL_TYPE defaultMaterialType = video::EMT_LIGHTMAP_M4;
  1286. const video::E_MODULATE_FUNC defaultModulate = video::EMFN_MODULATE_4X;
  1287. ISceneNode.h
  1288. Method made virtual
  1289. virtual const core::matrix4& getAbsoluteTransformation() const
  1290. Changed return value (constified)
  1291. virtual const core::vector3df& getScale() const
  1292. virtual const core::vector3df& getPosition() const
  1293. IEventReceiver.h
  1294. Removed member from UserEvent
  1295. f32 UserData3;
  1296. SMaterial.h
  1297. Changed member type (from u32)
  1298. char ZBuffer;
  1299. IGUISkin.h
  1300. Added parameter (for alignment)
  1301. virtual void draw3DTabButton(IGUIElement* element, bool active,
  1302. const core::rect<s32>& rect, const core::rect<s32>* clip=0, gui::EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT) = 0;
  1303. virtual void draw3DTabBody(IGUIElement* element, bool border, bool background,
  1304. const core::rect<s32>& rect, const core::rect<s32>* clip=0, s32 tabHeight=-1, gui::EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT ) = 0;
  1305. quaternion.h
  1306. Renamed method (from getDotProduct)
  1307. inline f32 dotProduct(const quaternion& other) const;
  1308. Changed return value (return *this)
  1309. quaternion& set(f32 x, f32 y, f32 z, f32 w);
  1310. quaternion& set(f32 x, f32 y, f32 z);
  1311. quaternion& set(const core::vector3df& vec);
  1312. quaternion& makeInverse();
  1313. quaternion& slerp( quaternion q1, quaternion q2, f32 interpolate );
  1314. quaternion& fromAngleAxis (f32 angle, const vector3df& axis);
  1315. quaternion& makeIdentity();
  1316. quaternion& rotationFromTo(const vector3df& from, const vector3df& to);
  1317. IVideoDriver.h
  1318. Added parameters (moved from endScene) and added default values
  1319. virtual bool beginScene(bool backBuffer=true, bool zBuffer=true,
  1320. SColor color=SColor(255,0,0,0), void* windowId=0,
  1321. core::rect<s32>* sourceRect=0) = 0;
  1322. Removed parameter (move to beginScene)
  1323. virtual bool endScene() = 0;
  1324. Renamed method (note, also affects ReferenceCount behavior!)
  1325. Use addRenderTargetTexture instead of createRenderTargetTexture
  1326. virtual ITexture* addRenderTargetTexture(const core::dimension2d<s32>& size,
  1327. const c8* name=0) =0;
  1328. Changed parameters (for 32bit index support)
  1329. virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount,
  1330. const void* indexList, u32 primCount, E_VERTEX_TYPE vType,
  1331. scene::E_PRIMITIVE_TYPE pType, E_INDEX_TYPE iType) = 0;
  1332. Changed parameter (colors are const pointers now)
  1333. virtual void draw2DImage(const video::ITexture* texture, const core::rect<s32>& destRect,
  1334. const core::rect<s32>& sourceRect, const core::rect<s32>* clipRect = 0,
  1335. const video::SColor * const colors=0, bool useAlphaChannelOfTexture=false) = 0;
  1336. IQ3LevelMesh.h
  1337. Added default value
  1338. virtual const quake3::SShader* getShader( const c8* filename, bool fileNameIsValid=true ) = 0;
  1339. ICameraSceneNode.h
  1340. Added method parameter (required to set orthogonal together with projection to avoid inconsistencies)
  1341. virtual void setProjectionMatrix(const core::matrix4& projection, bool isOrthogonal = false) = 0;
  1342. Removed method (use new parameter in setProjectionMatrix)
  1343. void setIsOrthogonal( bool orthogonal )
  1344. Constified return value
  1345. virtual const core::vector3df& getTarget() const = 0;
  1346. virtual const core::vector3df& getUpVector() const = 0;
  1347. matrix4.h
  1348. Removed method (use transformPlane)
  1349. void transformPlane_new( core::plane3d<f32> &plane) const;
  1350. Changed qulifications (to enable use under Win32 systems, too)
  1351. IRRLICHT_API extern const matrix4 IdentityMatrix;
  1352. SIrrCreationParameters.h
  1353. Changed member attribute types
  1354. u8 Bits;
  1355. const c8* const SDK_version_do_not_use;
  1356. IGUIElement.h
  1357. Renamed method from setRelativePosition (to distinguish rather different parameter interpretation)
  1358. void setRelativePositionProportional(const core::rect<f32>& r)
  1359. irrString.h
  1360. Constructors made explicit (use core::stringc(var) in places where var was used before)
  1361. explicit string(const double number)
  1362. explicit string(int number)
  1363. explicit string(unsigned int number)
  1364. Added parameter (allows use of method for stringw, and other things)
  1365. string<T>& trim(const string<T> & whitespace = " \t\n\r")
  1366. vector2d.h
  1367. Changed return value (return *this)
  1368. vector2d<T>& set(T nx, T ny) {X=nx; Y=ny; return *this; }
  1369. vector2d<T>& set(const vector2d<T>& p) { X=p.X; Y=p.Y; return *this; }
  1370. Added default value
  1371. vector2d<T>& rotateBy(f64 degrees, const vector2d<T>& center=vector2d<T>())
  1372. Changed parameter type (interpolation factor must not be int)
  1373. vector2d<T> getInterpolated(const vector2d<T>& other, f64 d) const
  1374. vector2d<T> getInterpolated_quadratic(const vector2d<T>& v2, const vector2d<T>& v3, f64 d) const
  1375. vector2d<T>& interpolate(const vector2d<T>& a, const vector2d<T>& b, f64 d)
  1376. Changes for Version 1.5.1
  1377. -------------------------
  1378. This release is a pure bugfixes release, with almost no visible API changes. All changes should be backward compatible (as it's just a minor release), but you have to recompile the app due to changes in the virtual method tables.
  1379. dimension2d.h
  1380. Fixed a bug in the operator+=, added operator-= and changed comparison to equal() method.
  1381. dimension2d<T>& operator-=(const dimension2d<T>& other)
  1382. IrrCompileConfig.h
  1383. Added defines to check for the Irrlicht version in the code.
  1384. IRRLICHT_VERSION_MAJOR
  1385. IRRLICHT_VERSION_MINOR
  1386. IRRLICHT_VERSION_REVISION
  1387. IRRLICHT_VERSION_SVN // only defined if you're using a version from SVN, i.e. not officially released one
  1388. IrrlichtDevice.h
  1389. Added static method isDriverSupported which checks the driver support of the library
  1390. static bool isDriverSupported(video::E_DRIVER_TYPE driver)
  1391. irrMath.h
  1392. Added iszero specialization for f64
  1393. bool iszero(const f64 a, const f64 tolerance = ROUNDING_ERROR_64)
  1394. irrXML.h
  1395. Added deleteCallback flag for cleanup of the ReadCallback.
  1396. IrrXMLReader* createIrrXMLReader(IFileReadCallBack* callback, bool deleteCallback = false);
  1397. IrrXMLReaderUTF16* createIrrXMLReaderUTF16(IFileReadCallBack* callback, bool deleteCallback = false);
  1398. IrrXMLReaderUTF32* createIrrXMLReaderUTF32(IFileReadCallBack* callback, bool deleteCallback = false);
  1399. ISceneNode.h
  1400. Added getSceneManager to get the currently used scene manager of the node.
  1401. ISceneManager* getSceneManager(void) const
  1402. IVideoDriver.h
  1403. Added default values for vType, pType, and iType
  1404. virtual void drawVertexPrimitiveList(const void* vertices, u32 vertexCount, const void* indexList, u32 primCount,
  1405. E_VERTEX_TYPE vType=EVT_STANDARD, scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES, E_INDEX_TYPE iType=EIT_16BIT)
  1406. Added method to draw 2d rectangle outline
  1407. void draw2DRectangleOutline(const core::recti& pos, SColor color=SColor(255,255,255,255))
  1408. matrix4.h
  1409. Added method to get transposedInverse
  1410. CMatrix4<T> transposedInverse(*this, EM4CONST_INVERSE_TRANSPOSED)
  1411. rect.h
  1412. Added typedefs
  1413. typedef rect<f32> rectf;
  1414. typedef rect<s32> recti;
  1415. SSharedMeshBuffer.h
  1416. Split hardware mapping hint into vertex and index part
  1417. E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const
  1418. E_HARDWARE_MAPPING getHardwareMappingHint_Index() const
  1419. void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX )
  1420. vector2d.h
  1421. Fix angle calculation for integer vectors
  1422. Changes for Version 1.5.2
  1423. -------------------------
  1424. Even less visible changes have been made in this version. Only the automatic Solaris OS recognition has changed, so make sure you have all things defined properly if you compile for Solaris. And the float parser bugfix is a visible change, though non-interfering for existing code.
  1425. Changes for Version 1.6.0
  1426. -------------------------
  1427. This releases has many changes in method signatures. The most obvious ones are signedness changes from s32 to u32. Since many templates won't accept both types, you need to change the types manually in your code. The other major change is from many different types of strings to the new class io::path. These changes should be transparent to the app, unless you need proper overrides in derived classes.
  1428. Finally, some deprecated methods have been removed, and some were simply renamed. Just check the API if some methods is not found anymore.
  1429. IMeshSceneNode.h
  1430. Added default parameters for identity transformation
  1431. IMeshSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
  1432. const core::vector3df& position = core::vector3df(0,0,0),
  1433. const core::vector3df& rotation = core::vector3df(0,0,0),
  1434. const core::vector3df& scale = core::vector3df(1,1,1))
  1435. path.h
  1436. This is a new type, which handles stuff with UTF file systems.
  1437. typedef core::string<fschar_t> io::path;
  1438. ESceneNodeTypes.h
  1439. New scene node identifiers
  1440. ESNT_SKY_DOME = MAKE_IRR_ID('s','k','y','d'),
  1441. ESNT_Q3SHADER_SCENE_NODE = MAKE_IRR_ID('q','3','s','h'),
  1442. ESNT_VOLUME_LIGHT = MAKE_IRR_ID('v','o','l','l'),
  1443. IGUIListBox.h
  1444. New methods
  1445. virtual void setSelected(const wchar_t *item) = 0;
  1446. virtual void setItemHeight( s32 height ) = 0;
  1447. virtual void setDrawBackground(bool draw) = 0;
  1448. ITexture.h
  1449. New texture generation flag for burnings video driver
  1450. //! Allow the Driver to use Non-Power-2-Textures
  1451. ETCF_ALLOW_NON_POWER_2 = 0x00000040,
  1452. Parameter change (now using path type instead of C-strings)
  1453. ITexture(const io::path& name)
  1454. Signedness change
  1455. virtual const core::dimension2d<u32>& getOriginalSize() const = 0;
  1456. virtual const core::dimension2d<u32>& getSize() const = 0;
  1457. New method
  1458. virtual bool hasAlpha() const
  1459. Parameter change (now using path type instead of stringc)
  1460. const io::path& getName() const
  1461. ILightManager.h
  1462. This is a new interface for the light manager
  1463. class ILightManager : public IReferenceCounted
  1464. IGUIEditBox.h
  1465. Signedness change
  1466. virtual core::dimension2du getTextDimension() = 0;
  1467. ITriangleSelector.h
  1468. New method
  1469. virtual const ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const = 0;
  1470. IMeshManipulator.h
  1471. New methods
  1472. virtual void makePlanarTextureMapping(scene::IMeshBuffer* meshbuffer, f32 resolution=0.001f) const =0;
  1473. virtual void makePlanarTextureMapping(scene::IMeshBuffer* buffer, f32 resolutionS, f32 resolutionT, u8 axis, const core::vector3df& offset) const =0;
  1474. virtual IMesh* createMeshWith1TCoords(IMesh* mesh) const = 0;
  1475. SceneParameters.h
  1476. Removed parameter
  1477. const c8* const DMF_USE_MATERIALS_DIRS = "DMF_MaterialsDir";
  1478. New parameters
  1479. const c8* const DMF_IGNORE_MATERIALS_DIRS = "DMF_IgnoreMaterialsDir";
  1480. const c8* const OBJ_LOADER_IGNORE_MATERIAL_FILES = "OBJ_IgnoreMaterialFiles";
  1481. const c8* const B3D_LOADER_IGNORE_MIPMAP_FLAG = "B3D_IgnoreMipmapFlag";
  1482. const c8* const DEBUG_NORMAL_LENGTH = "DEBUG_Normal_Length";
  1483. const c8* const DEBUG_NORMAL_COLOR = "DEBUG_Normal_Color";
  1484. SViewFrustum.h
  1485. Removed method (use getTransform)
  1486. void setTransformState( video::E_TRANSFORMATION_STATE state);
  1487. New methods
  1488. core::matrix4& getTransform( video::E_TRANSFORMATION_STATE state);
  1489. const core::matrix4& getTransform( video::E_TRANSFORMATION_STATE state) const;
  1490. bool clipLine(core::line3d<f32>& line) const;
  1491. IFileList.h
  1492. Changed parameters (to io::path)
  1493. virtual const io::path& getFileName(u32 index) const = 0;
  1494. virtual const io::path& getFullFileName(u32 index) const = 0;
  1495. New methods
  1496. virtual u32 getFileSize(u32 index) const = 0;
  1497. virtual s32 findFile(const io::path& filename, bool isFolder=false) const = 0;
  1498. virtual const io::path& getPath() const = 0;
  1499. coreutil.h
  1500. New methods
  1501. s32 isFileExtension(const io::path& filename,
  1502. const io::path& ext0, const io::path& ext1, const io::path& ext2)
  1503. bool hasFileExtension(const io::path& filename,
  1504. const io::path& ext0, const io::path& ext1 = "", const io::path& ext2 = "")
  1505. stringw& cutFilenameExtension ( stringw &dest, const stringw &source )
  1506. core::stringw& deletePathFromFilename(core::stringw& filename)
  1507. core::stringc& deletePathFromFilename(core::stringc& filename)
  1508. io::path& deletePathFromPath(io::path& filename, s32 pathCount)
  1509. s32 isInSameDirectory ( const io::path& path, const io::path& file )
  1510. IGUIComboBox.h
  1511. New methods
  1512. virtual u32 getItemData(u32 idx) const = 0;
  1513. virtual s32 getIndexForItemData(u32 data ) const = 0;
  1514. New parameter
  1515. virtual u32 addItem(const wchar_t* text, u32 data = 0) = 0;
  1516. irrArray.h
  1517. New allocation scheme member
  1518. array()
  1519. Use overload instead of different name
  1520. s32 binary_search(const T& element) const
  1521. New method
  1522. void setAllocStrategy ( eAllocStrategy newStrategy = ALLOC_STRATEGY_DOUBLE )
  1523. s32 binary_search_multi(const T& element, s32 &last)
  1524. IrrCompileConfig.h
  1525. New compiler flags
  1526. #define _IRR_MATERIAL_MAX_TEXTURES_ 4
  1527. //! Define _IRR_D3D_USE_LEGACY_HLSL_COMPILER to enable the old HLSL compiler in recent DX SDKs
  1528. #define BURNINGVIDEO_RENDERER_CE
  1529. #define IGNORE_DEPRECATED_WARNING
  1530. #define _IRR_COMPILE_WITH_PLY_LOADER_
  1531. #define _IRR_COMPILE_WITH_PLY_WRITER_
  1532. #define _IRR_COMPILE_WITH_RGB_LOADER_
  1533. #define __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
  1534. #define __IRR_COMPILE_WITH_MOUNT_ARCHIVE_LOADER_
  1535. #define __IRR_COMPILE_WITH_PAK_ARCHIVE_LOADER_
  1536. #define __IRR_COMPILE_WITH_TAR_ARCHIVE_LOADER_
  1537. //! _IRR_WINDOWS_CE_PLATFORM_ for Windows CE
  1538. //! _IRR_COMPILE_WITH_WINDOWS_DEVICE_ for Windows API based device
  1539. //! _IRR_COMPILE_WITH_WINDOWS_CE_DEVICE_ for Windows CE API based device
  1540. //! _IRR_COMPILE_WITH_OSX_DEVICE_ for Cocoa native windowing on OSX
  1541. //! _IRR_COMPILE_WITH_X11_DEVICE_ for Linux X11 based device
  1542. //! _IRR_COMPILE_WITH_SDL_DEVICE_ for platform independent SDL framework
  1543. //! _IRR_COMPILE_WITH_CONSOLE_DEVICE_ for no windowing system, used as a fallback
  1544. Removed compiler flags
  1545. //! _IRR_USE_SDL_DEVICE_ for platform independent SDL framework
  1546. //! _IRR_USE_WINDOWS_DEVICE_ for Windows API based device
  1547. //! _IRR_USE_WINDOWS_CE_DEVICE_ for Windows CE API based device
  1548. //! _IRR_USE_LINUX_DEVICE_ for X11 based device
  1549. //! _IRR_USE_OSX_DEVICE_ for Cocoa native windowing on OSX
  1550. Old compilers rejected
  1551. # error "Only Microsoft Visual Studio 7.0 and later are supported."
  1552. Force symbol export in shared libraries built with gcc.
  1553. #define IRRLICHT_API __attribute__ ((visibility("default")))
  1554. IGUIFileOpenDialog.h
  1555. New method
  1556. virtual const io::path& getDirectoryName() = 0;
  1557. EDeviceTypes.h
  1558. New enum for multi-device support
  1559. enum E_DEVICE_TYPE
  1560. IMeshLoader.h
  1561. Changed parameter to use io::path instead of C strings
  1562. virtual bool isALoadableFileExtension(const io::path& filename) const = 0;
  1563. IAnimatedMeshSceneNode.h
  1564. Changed return value to pointer type
  1565. virtual const SMD3QuaternionTag* getMD3TagTransformation( const core::stringc & tagname) = 0;
  1566. ISceneManager.h
  1567. New enum values and numbering
  1568. enum E_SCENE_NODE_RENDER_PASS
  1569. ESNRP_NONE =0,
  1570. ESNRP_TRANSPARENT =16,
  1571. ESNRP_TRANSPARENT_EFFECT =32,
  1572. Changed parameter to use io::path instead of C strings
  1573. virtual IAnimatedMesh* getMesh(const io::path& filename) = 0;
  1574. New methods
  1575. virtual io::IFileSystem* getFileSystem() = 0;
  1576. virtual ITriangleSelector* createTriangleSelector(IAnimatedMeshSceneNode* node) = 0;
  1577. virtual const c8* getAnimatorTypeName(ESCENE_NODE_ANIMATOR_TYPE type) = 0;
  1578. virtual ISkinnedMesh* createSkinnedMesh() = 0;
  1579. virtual void setLightManager(ILightManager* lightManager) = 0;
  1580. virtual const IGeometryCreator* getGeometryCreator(void) const = 0;
  1581. virtual bool isCulled(const ISceneNode* node) const =0;
  1582. Changed return type to IMeshSceneNode
  1583. virtual IMeshSceneNode* addOctTreeSceneNode(IAnimatedMesh* mesh, ISceneNode* parent=0,
  1584. s32 id=-1, s32 minimalPolysPerNode=512, bool alsoAddIfMeshPointerZero=false) = 0;
  1585. virtual IMeshSceneNode* addOctTreeSceneNode(IMesh* mesh, ISceneNode* parent=0,
  1586. s32 id=-1, s32 minimalPolysPerNode=256, bool alsoAddIfMeshPointerZero=false) = 0;
  1587. virtual IMeshSceneNode* addQuake3SceneNode(IMeshBuffer* meshBuffer, const quake3::IShader * shader,
  1588. ISceneNode* parent=0, s32 id=-1) = 0;
  1589. New parameter invertMouse
  1590. virtual ICameraSceneNode* addCameraSceneNodeFPS(ISceneNode* parent = 0,
  1591. f32 rotateSpeed = 100.0f, f32 moveSpeed = 0.5f, s32 id=-1,
  1592. SKeyMap* keyMapArray=0, s32 keyMapSize=0, bool noVerticalMovement=false,
  1593. f32 jumpSpeed = 0.f, bool invertMouse=false) = 0;
  1594. New parameter radius
  1595. virtual ISceneNode* addSkyDomeSceneNode(video::ITexture* texture,
  1596. u32 horiRes=16, u32 vertRes=8,
  1597. f32 texturePercentage=0.9, f32 spherePercentage=2.0,f32 radius = 1000.f,
  1598. ISceneNode* parent=0, s32 id=-1) = 0;
  1599. Changed to use io::path instead of C strings
  1600. virtual ITerrainSceneNode* addTerrainSceneNode(
  1601. const io::path& heightMapFileName,
  1602. ISceneNode* parent=0, s32 id=-1,
  1603. virtual IAnimatedMesh* addHillPlaneMesh(const io::path& name,
  1604. const core::dimension2d<f32>& tileSize, const core::dimension2d<u32>& tileCount,
  1605. video::SMaterial* material = 0, f32 hillHeight = 0.0f,
  1606. const core::dimension2d<f32>& countHills = core::dimension2d<f32>(0.0f, 0.0f),
  1607. const core::dimension2d<f32>& textureRepeatCount = core::dimension2d<f32>(1.0f, 1.0f)) = 0;
  1608. virtual IAnimatedMesh* addArrowMesh(const io::path& name,
  1609. video::SColor vtxColor0=0xFFFFFFFF,
  1610. video::SColor vtxColor1=0xFFFFFFFF,
  1611. u32 tesselationCylinder=4, u32 tesselationCone=8,
  1612. virtual IAnimatedMesh* addSphereMesh(const io::path& name,
  1613. f32 radius=5.f, u32 polyCountX = 16,
  1614. u32 polyCountY = 16) = 0;
  1615. virtual bool saveScene(const io::path& filename, ISceneUserDataSerializer* userDataSerializer=0) = 0;
  1616. virtual bool loadScene(const io::path& filename, ISceneUserDataSerializer* userDataSerializer=0) = 0;
  1617. Changed to use io::path instead of C strings and signedness change
  1618. virtual IAnimatedMesh* addTerrainMesh(const io::path& meshname,
  1619. video::IImage* texture, video::IImage* heightmap,
  1620. const core::dimension2d<f32>& stretchSize = core::dimension2d<f32>(10.0f,10.0f),
  1621. f32 maxHeight=200.0f,
  1622. const core::dimension2d<u32>& defaultVertexBlockSize = core::dimension2d<u32>(64,64)) = 0;
  1623. New method
  1624. virtual IAnimatedMesh* addVolumeLightMesh(const io::path& name,
  1625. const u32 SubdivideU = 32, const u32 SubdivideV = 32,
  1626. const video::SColor FootColor = video::SColor(51, 0, 230, 180),
  1627. const video::SColor TailColor = video::SColor(0, 0, 0, 0)) = 0;
  1628. Constification of method
  1629. virtual ICameraSceneNode* getActiveCamera() const =0;
  1630. New parameters
  1631. virtual ISceneNodeAnimator* createFlyCircleAnimator(
  1632. const core::vector3df& center=core::vector3df(0.f,0.f,0.f),
  1633. f32 radius=100.f, f32 speed=0.001f,
  1634. const core::vector3df& direction=core::vector3df(0.f, 1.f, 0.f),
  1635. f32 startPosition = 0.f,
  1636. f32 radiusEllipsoid = 0.f) = 0;
  1637. virtual ISceneNodeAnimator* createFlyStraightAnimator(const core::vector3df& startPoint,
  1638. const core::vector3df& endPoint, u32 timeForWay, bool loop=false, bool pingpong = false) = 0;
  1639. ISceneNodeAnimatorCollisionResponse.h
  1640. New interface
  1641. class ICollisionCallback : public virtual IReferenceCounted
  1642. New methods for ISceneNodeAnimatorCollisionResponse
  1643. virtual void setAnimateTarget ( bool enable ) = 0;
  1644. virtual bool getAnimateTarget () const = 0;
  1645. virtual void setTargetNode(ISceneNode * node) = 0;
  1646. virtual ISceneNode* getTargetNode(void) const = 0;
  1647. virtual bool collisionOccurred() const = 0;
  1648. virtual const core::vector3df & getCollisionPoint() const = 0;
  1649. virtual const core::triangle3df & getCollisionTriangle() const = 0;
  1650. virtual const core::vector3df & getCollisionResultPosition(void) const = 0;
  1651. virtual const ISceneNode* getCollisionNode(void) const = 0;
  1652. virtual void setCollisionCallback(ICollisionCallback* callback) = 0;
  1653. ILightSceneNode.h
  1654. New methods
  1655. virtual void setVisible(bool isVisible) = 0;
  1656. EMeshWriterEnums.h
  1657. New enums
  1658. EMWT_PLY = MAKE_IRR_ID('p','l','y',0)
  1659. EMWF_WRITE_BINARY = 0x4
  1660. ISceneNodeAnimator.h
  1661. New method
  1662. virtual bool hasFinished(void) const
  1663. SMaterialLayer.h
  1664. Changed types
  1665. u8 TextureWrap;
  1666. bool BilinearFilter:1;
  1667. bool TrilinearFilter:1;
  1668. u8 AnisotropicFilter;
  1669. New member
  1670. s8 LODBias;
  1671. IVideoModeList.h
  1672. Signedness change
  1673. virtual core::dimension2d<u32> getVideoModeResolution(s32 modeNumber) const = 0;
  1674. virtual core::dimension2d<u32> getVideoModeResolution(const core::dimension2d<u32>& minSize, const core::dimension2d<u32>& maxSize) const = 0;
  1675. virtual const core::dimension2d<u32>& getDesktopResolution() const = 0;
  1676. EMaterialFlags.h
  1677. Enum values changed (all renumbered)
  1678. ISkinnedMesh.h
  1679. Renamed methods (was create... before, but these methods grab the things they create)
  1680. virtual SSkinMeshBuffer* addMeshBuffer() = 0;
  1681. virtual SJoint* addJoint(SJoint *parent=0) = 0;
  1682. virtual SWeight* addWeight(SJoint *joint) = 0;
  1683. virtual SPositionKey* addPositionKey(SJoint *joint) = 0;
  1684. virtual SScaleKey* addScaleKey(SJoint *joint) = 0;
  1685. virtual SRotationKey* addRotationKey(SJoint *joint) = 0;
  1686. SLight.h
  1687. Type change
  1688. bool CastShadows:1;
  1689. IGUITreeView.h
  1690. New element
  1691. // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
  1692. class IGUITreeView : public IGUIElement
  1693. IAnimatedMeshMD3.h
  1694. Renamed class (from SMD3QuaterionTag)
  1695. struct SMD3QuaternionTag
  1696. IGUIEnvironment.h
  1697. New methods
  1698. virtual IGUIImageList* createImageList( video::ITexture* texture,
  1699. core::dimension2d<s32> imageSize, bool useAlphaChannel ) = 0;
  1700. virtual IGUITreeView* addTreeView(const core::rect<s32>& rectangle,
  1701. IGUIElement* parent=0, s32 id=-1, bool drawBackground=false,
  1702. bool scrollBarVertical = true, bool scrollBarHorizontal = false) = 0;
  1703. Changed parameters to use io::path (instead of C strings)
  1704. virtual IGUIFont* getFont(const io::path& filename) = 0;
  1705. virtual IGUISpriteBank* getSpriteBank(const io::path& filename) = 0;
  1706. virtual IGUISpriteBank* addEmptySpriteBank(const io::path& name) = 0;
  1707. virtual bool saveGUI(const io::path& filename, IGUIElement* start=0) = 0;
  1708. virtual bool loadGUI(const io::path& filename, IGUIElement* parent=0) = 0;
  1709. New parameter "border"
  1710. virtual IGUISpinBox* addSpinBox(const wchar_t* text, const core::rect<s32>& rectangle,
  1711. bool border=true,IGUIElement* parent=0, s32 id=-1) = 0;
  1712. IQ3Shader.h
  1713. Made non-const
  1714. static core::stringc irrEmptyStringc("");
  1715. New enum values
  1716. enum eQ3MeshIndex
  1717. E_Q3_MESH_FOG,
  1718. E_Q3_MESH_UNRESOLVED,
  1719. IGeometryCreator.h
  1720. New interface
  1721. class IGeometryCreator : public IReferenceCounted
  1722. IFileArchive.h
  1723. New interfaces
  1724. class IFileArchive : public virtual IReferenceCounted
  1725. class IArchiveLoader : public virtual IReferenceCounted
  1726. IFileSystem.h
  1727. Changed parameters to use io::path (instead of C strings/stringc)
  1728. virtual IReadFile* createAndOpenFile(const path& filename) =0;
  1729. virtual IReadFile* createMemoryReadFile(void* memory, s32 len, const path& fileName, bool deleteMemoryWhenDropped=false) =0;
  1730. virtual IWriteFile* createAndWriteFile(const path& filename, bool append=false) =0;
  1731. virtual const path& getWorkingDirectory() =0;
  1732. virtual bool changeWorkingDirectoryTo(const path& newDirectory) =0;
  1733. virtual path getAbsolutePath(const path& filename) const =0;
  1734. virtual path getFileDir(const path& filename) const =0;
  1735. virtual path getFileBasename(const path& filename, bool keepExtension=true) const =0;
  1736. virtual bool existFile(const path& filename) const =0;
  1737. virtual IXMLReader* createXMLReader(const path& filename) =0;
  1738. virtual IXMLReaderUTF8* createXMLReaderUTF8(const path& filename) =0;
  1739. virtual IXMLWriter* createXMLWriter(const path& filename) =0;
  1740. New methods
  1741. virtual IReadFile* createLimitReadFile(const path& fileName,
  1742. IReadFile* alreadyOpenedFile, long pos, long areaSize) =0;
  1743. virtual IWriteFile* createMemoryWriteFile(void* memory, s32 len, const path& fileName, bool deleteMemoryWhenDropped=false) =0;
  1744. virtual bool addFileArchive(const path& filename, bool ignoreCase=true, bool ignorePaths=true,
  1745. E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN) =0;
  1746. virtual void addArchiveLoader(IArchiveLoader* loader) =0;
  1747. virtual u32 getFileArchiveCount() const =0;
  1748. virtual bool removeFileArchive(u32 index) =0;
  1749. virtual bool removeFileArchive(const path& filename) =0;
  1750. virtual bool moveFileArchive(u32 sourceIndex, s32 relative) =0;
  1751. virtual IFileArchive* getFileArchive(u32 index) =0;
  1752. virtual path& flattenFilename(path& directory, const path& root="/") const =0;
  1753. virtual EFileSystemType setFileListSystem(EFileSystemType listType) =0;
  1754. Deprecate methods
  1755. virtual bool addZipFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true)
  1756. virtual bool addFolderFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true)
  1757. virtual bool addPakFileArchive(const c8* filename, bool ignoreCase=true, bool ignorePaths=true)
  1758. Constification of method
  1759. virtual IFileList* createFileList() =0;
  1760. IrrlichtDevice.h
  1761. Renamed method (from setResizeAble)
  1762. virtual void setResizable(bool resize=false) = 0;
  1763. New methods
  1764. virtual void minimizeWindow() =0;
  1765. virtual void maximizeWindow() =0;
  1766. virtual void restoreWindow() =0;
  1767. virtual bool setGammaRamp(f32 red, f32 green, f32 blue,
  1768. f32 relativebrightness, f32 relativecontrast) =0;
  1769. virtual bool getGammaRamp(f32 &red, f32 &green, f32 &blue,
  1770. f32 &brightness, f32 &contrast) =0;
  1771. virtual E_DEVICE_TYPE getType() const = 0;
  1772. irrMath.h
  1773. Renamed from ROUNDING_ERROR_32
  1774. const f32 ROUNDING_ERROR_f32 = 0.000001f;
  1775. Renamed from ROUNDING_ERROR_64
  1776. const f64 ROUNDING_ERROR_f64 = 0.00000001;
  1777. New constant
  1778. const s32 ROUNDING_ERROR_S32 = 1;
  1779. New methods
  1780. bool isnotzero(const f32 a, const f32 tolerance = ROUNDING_ERROR_f32)
  1781. u16 if_c_a_else_b ( const s16 condition, const u16 a, const u16 b )
  1782. f32 squareroot(const f32 f)
  1783. f64 squareroot(const f64 f)
  1784. s32 squareroot(const s32 f)
  1785. f64 reciprocal_squareroot(const f64 x)
  1786. s32 reciprocal_squareroot(const s32 x)
  1787. f64 reciprocal ( const f64 f )
  1788. IGPUProgrammingServices.h
  1789. Changed parameters to use io::path
  1790. virtual s32 addHighLevelShaderMaterialFromFiles(
  1791. const io::path& vertexShaderProgramFileName,
  1792. const c8* vertexShaderEntryPointName = "main",
  1793. E_VERTEX_SHADER_TYPE vsCompileTarget = EVST_VS_1_1,
  1794. const io::path& pixelShaderProgramFileName = "",
  1795. const c8* pixelShaderEntryPointName = "main",
  1796. E_PIXEL_SHADER_TYPE psCompileTarget = EPST_PS_1_1,
  1797. IShaderConstantSetCallBack* callback = 0,
  1798. virtual s32 addShaderMaterialFromFiles(const io::path& vertexShaderProgramFileName,
  1799. const io::path& pixelShaderProgramFileName,
  1800. IShaderConstantSetCallBack* callback = 0,
  1801. E_MATERIAL_TYPE baseMaterial = video::EMT_SOLID,
  1802. s32 userData = 0) = 0;
  1803. ISceneNode.h
  1804. New method
  1805. virtual bool isTrulyVisible() const
  1806. IEventReceiver.h
  1807. New enum values
  1808. EMIE_MOUSE_DOUBLE_CLICK,
  1809. EMIE_MOUSE_TRIPLE_CLICK,
  1810. EGET_DIRECTORY_SELECTED,
  1811. EGET_EDITBOX_CHANGED,
  1812. EGET_EDITBOX_MARKING_CHANGED,
  1813. EGET_TREEVIEW_NODE_DESELECT,
  1814. EGET_TREEVIEW_NODE_SELECT,
  1815. EGET_TREEVIEW_NODE_EXPAND,
  1816. EGET_TREEVIEW_NODE_COLLAPS,
  1817. EGET_COUNT
  1818. New enum
  1819. enum E_MOUSE_BUTTON_STATE_MASK
  1820. New members
  1821. bool Shift:1;
  1822. bool Control:1;
  1823. u32 ButtonStates;
  1824. New methods
  1825. bool isLeftPressed() const { return 0 != ( ButtonStates & EMBSM_LEFT ); }
  1826. bool isRightPressed() const { return 0 != ( ButtonStates & EMBSM_RIGHT ); }
  1827. bool isMiddlePressed() const { return 0 != ( ButtonStates & EMBSM_MIDDLE ); }
  1828. Types changed
  1829. bool PressedDown:1;
  1830. bool Shift:1;
  1831. bool Control:1;
  1832. IGUISpriteBank.h
  1833. New method
  1834. virtual void draw2DSpriteBatch(const core::array<u32>& indices, const core::array<core::position2di>& pos,
  1835. const core::rect<s32>* clip=0,
  1836. const video::SColor& color= video::SColor(255,255,255,255),
  1837. u32 starttime=0, u32 currenttime=0,
  1838. bool loop=true, bool center=false) = 0;
  1839. SMaterial.h
  1840. New enums
  1841. enum E_COMPARISON_FUNC
  1842. enum E_COLOR_PLANE
  1843. enum E_ALPHA_SOURCE
  1844. enum E_ANTI_ALIASING_MODE
  1845. enum E_COLOR_MATERIAL
  1846. New parameters
  1847. inline f32 pack_texureBlendFunc ( const E_BLEND_FACTOR srcFact, const E_BLEND_FACTOR dstFact, const E_MODULATE_FUNC modulate=EMFN_MODULATE_1X, const u32 alphaSource=EAS_TEXTURE )
  1848. inline void unpack_texureBlendFunc ( E_BLEND_FACTOR &srcFact, E_BLEND_FACTOR &dstFact,
  1849. E_MODULATE_FUNC &modulo, u32& alphaSource, const f32 param )
  1850. New methods
  1851. inline bool textureBlendFunc_hasAlpha ( const E_BLEND_FACTOR factor )
  1852. Default value set elsewhere now (see IrrCompileConfig.h)
  1853. const u32 MATERIAL_MAX_TEXTURES = _IRR_MATERIAL_MAX_TEXTURES_;
  1854. Types changed
  1855. u8 ZBuffer;
  1856. bool Wireframe:1;
  1857. bool PointCloud:1;
  1858. bool GouraudShading:1;
  1859. bool Lighting:1;
  1860. bool ZWriteEnable:1;
  1861. bool BackfaceCulling:1;
  1862. bool FrontfaceCulling:1;
  1863. bool FogEnable:1;
  1864. bool NormalizeNormals:1;
  1865. New members
  1866. u8 AntiAliasing;
  1867. u8 ColorMask:4;
  1868. u8 ColorMaterial:3;
  1869. New constant
  1870. IRRLICHT_API extern SMaterial IdentityMaterial;
  1871. IGUISkin.h
  1872. New enum values
  1873. EGDS_TITLEBARTEXT_DISTANCE_X,
  1874. EGDS_TITLEBARTEXT_DISTANCE_Y,
  1875. quaternion.h
  1876. New parameters
  1877. void getMatrix( matrix4 &dest, const vector3df &translation ) const;
  1878. New method
  1879. void getMatrixCenter( matrix4 &dest, const vector3df &center, const vector3df &translation ) const;
  1880. ISceneNodeAnimatorCameraFPS.h
  1881. New method
  1882. virtual void setInvertMouse(bool invert) = 0;
  1883. IImage.h
  1884. New enum values
  1885. /** Floating Point formats. The following formats may only be used for render target textures. */
  1886. ECF_R16F,
  1887. ECF_G16R16F,
  1888. ECF_A16B16G16R16F,
  1889. ECF_R32F,
  1890. ECF_G32R32F,
  1891. ECF_A32B32G32R32F,
  1892. ECF_UNKNOWN
  1893. Signedness change
  1894. virtual const core::dimension2d<u32>& getDimension() const = 0;
  1895. virtual void copyToScaling(void* target, u32 width, u32 height, ECOLOR_FORMAT format=ECF_A8R8G8B8, u32 pitch=0) =0;
  1896. New parameter
  1897. virtual void setPixel(u32 x, u32 y, const SColor &color, bool blend = false ) = 0;
  1898. New method
  1899. virtual void copyToScalingBoxFilter(IImage* target, s32 bias = 0, bool blend = false) = 0;
  1900. static u32 getBitsPerPixelFromFormat(const ECOLOR_FORMAT format)
  1901. static bool isRenderTargetOnlyFormat(const ECOLOR_FORMAT format)
  1902. IVideoDriver.h
  1903. New enum values (only existing if _IRR_MATERIAL_MAX_TEXTURES_ large enough)
  1904. ETS_TEXTURE_4
  1905. ETS_TEXTURE_5
  1906. ETS_TEXTURE_6
  1907. ETS_TEXTURE_7
  1908. New enums
  1909. enum E_RENDER_TARGET
  1910. enum E_FOG_TYPE
  1911. New type
  1912. struct SOverrideMaterial
  1913. New methods
  1914. virtual u32 getImageLoaderCount() const = 0;
  1915. virtual IImageLoader* getImageLoader(u32 n) = 0;
  1916. virtual u32 getImageWriterCount() const = 0;
  1917. virtual IImageWriter* getImageWriter(u32 n) = 0;
  1918. virtual bool setRenderTarget(E_RENDER_TARGET target, bool clearTarget=true,
  1919. bool clearZBuffer=true, SColor color=video::SColor(0,0,0,0)) =0;
  1920. virtual void draw2DVertexPrimitiveList(const void* vertices, u32 vertexCount,
  1921. const void* indexList, u32 primCount,
  1922. E_VERTEX_TYPE vType=EVT_STANDARD,
  1923. scene::E_PRIMITIVE_TYPE pType=scene::EPT_TRIANGLES,
  1924. E_INDEX_TYPE iType=EIT_16BIT) =0;
  1925. virtual void draw2DImageBatch(const video::ITexture* texture,
  1926. const core::array<core::position2d<s32> >& positions,
  1927. const core::array<core::rect<s32> >& sourceRects,
  1928. const core::rect<s32>* clipRect=0,
  1929. SColor color=SColor(255,255,255,255),
  1930. bool useAlphaChannelOfTexture=false) =0;
  1931. virtual void turnLightOn(s32 lightIndex, bool turnOn) =0;
  1932. virtual bool writeImageToFile(IImage* image, io::IWriteFile* file, u32 param =0) =0;
  1933. virtual IImage* createImage(ITexture* texture,
  1934. const core::position2d<s32>& pos, const core::dimension2d<u32>& size) =0;
  1935. virtual void setMinHardwareBufferVertexCount(u32 count) =0;
  1936. virtual SOverrideMaterial& getOverrideMaterial() =0;
  1937. Changed parameters to use io::path
  1938. virtual ITexture* getTexture(const io::path& filename) = 0;
  1939. virtual void renameTexture(ITexture* texture, const io::path& newName) = 0;
  1940. virtual ITexture* addTexture(const io::path& name, IImage* image) = 0;
  1941. virtual IImage* createImageFromFile(const io::path& filename) = 0;
  1942. virtual bool writeImageToFile(IImage* image, const io::path& filename, u32 param = 0) = 0;
  1943. virtual video::ITexture* findTexture(const io::path& filename) = 0;
  1944. Changed signedness
  1945. virtual ITexture* addTexture(const core::dimension2d<u32>& size,
  1946. const io::path& name, ECOLOR_FORMAT format = ECF_A8R8G8B8) = 0;
  1947. virtual const core::dimension2d<u32>& getScreenSize() const =0;
  1948. virtual const core::dimension2d<u32>& getCurrentRenderTargetSize() const =0;
  1949. virtual IImage* createImageFromData(ECOLOR_FORMAT format,
  1950. const core::dimension2d<u32>& size, void *data,
  1951. bool ownForeignMemory=false,
  1952. bool deleteMemory = true) =0;
  1953. virtual IImage* createImage(ECOLOR_FORMAT format, const core::dimension2d<u32>& size) =0;
  1954. virtual IImage* createImage(IImage* imageToCopy,
  1955. const core::position2d<s32>& pos,
  1956. const core::dimension2d<u32>& size) =0;
  1957. virtual void OnResize(const core::dimension2d<u32>& size) =0;
  1958. Changed signedness and usage of io::path
  1959. virtual ITexture* addRenderTargetTexture(const core::dimension2d<u32>& size,
  1960. const io::path& name = "rt", const ECOLOR_FORMAT format = ECF_UNKNOWN) =0;
  1961. Removed deprecated method
  1962. virtual ITexture* createRenderTargetTexture(const core::dimension2d<s32>& size,
  1963. const c8* name=0) =0;
  1964. New parameter
  1965. virtual void makeColorKeyTexture(video::ITexture* texture,
  1966. video::SColor color, bool zeroTexels = false) const =0;
  1967. virtual void makeColorKeyTexture(video::ITexture* texture,
  1968. core::position2d<s32> colorKeyPixelPos, bool zeroTexels = false) const =0;
  1969. Changed parameters
  1970. virtual void setFog(SColor color=SColor(0,255,255,255),
  1971. E_FOG_TYPE fogType=EFT_FOG_LINEAR,
  1972. f32 start=50.0f, f32 end=100.0f, f32 density=0.01f,
  1973. bool pixelFog=false, bool rangeFog=false) =0;
  1974. Changed return types
  1975. virtual s32 addDynamicLight(const SLight& light) =0;
  1976. EDriverFeatures.h
  1977. New enum values
  1978. EVDF_ALPHA_TO_COVERAGE,
  1979. EVDF_COLOR_MASK,
  1980. IGUIScrollBar.h
  1981. New methods
  1982. virtual void setMin(s32 max) = 0;
  1983. virtual s32 getMin() const = 0;
  1984. IQ3LevelMesh.h
  1985. Removed method
  1986. virtual void releaseMesh(s32 index) = 0;
  1987. Made return value non-const
  1988. virtual quake3::tQ3EntityList& getEntityList() = 0;
  1989. ISceneCollisionManager.h
  1990. New parameter
  1991. virtual bool getCollisionPoint(const core::line3d<f32>& ray,
  1992. ITriangleSelector* selector, core::vector3df& outCollisionPoint,
  1993. core::triangle3df& outTriangle, const ISceneNode*& outNode) =0;
  1994. virtual core::vector3df getCollisionResultPosition(
  1995. ITriangleSelector* selector,
  1996. const core::vector3df &ellipsoidPosition,
  1997. const core::vector3df& ellipsoidRadius,
  1998. const core::vector3df& ellipsoidDirectionAndSpeed,
  1999. core::triangle3df& triout,
  2000. core::vector3df& hitPosition,
  2001. bool& outFalling,
  2002. const ISceneNode*& outNode,
  2003. f32 slidingSpeed = 0.0005f,
  2004. const core::vector3df& gravityDirectionAndSpeed = core::vector3df(0.0f, 0.0f, 0.0f)) = 0;
  2005. Made parameter const&
  2006. virtual core::line3d<f32> getRayFromScreenCoordinates(
  2007. const core::position2d<s32> & pos, ICameraSceneNode* camera = 0) = 0;
  2008. virtual core::position2d<s32> getScreenCoordinatesFrom3DPosition(
  2009. const core::vector3df & pos, ICameraSceneNode* camera=0) = 0;
  2010. Made parameter const& and added new parameter
  2011. virtual ISceneNode* getSceneNodeFromScreenCoordinatesBB(const core::position2d<s32>& pos,
  2012. s32 idBitMask=0, bool bNoDebugObjects=false, ISceneNode* root=0) =0;
  2013. virtual ISceneNode* getSceneNodeFromRayBB(const core::line3d<f32>& ray,
  2014. s32 idBitMask=0, bool bNoDebugObjects=false, ISceneNode* root=0) =0;
  2015. New method
  2016. virtual ISceneNode* getSceneNodeAndCollisionPointFromRay(
  2017. core::line3df ray, core::vector3df & outCollisionPoint,
  2018. core::triangle3df & outTriangle, s32 idBitMask = 0,
  2019. ISceneNode * collisionRootNode = 0, bool noDebugObjects = false) = 0;
  2020. irrlicht.h
  2021. Changed interface of method (qualifiers and signedness)
  2022. extern "C" IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice(
  2023. video::E_DRIVER_TYPE deviceType = video::EDT_SOFTWARE,
  2024. // parantheses are necessary for some compilers
  2025. const core::dimension2d<u32>& windowSize = (core::dimension2d<u32>(640,480)),
  2026. u32 bits = 16,
  2027. bool fullscreen = false,
  2028. bool stencilbuffer = false,
  2029. bool vsync = false,
  2030. IEventReceiver* receiver = 0);
  2031. extern "C" IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDeviceEx(
  2032. const SIrrlichtCreationParameters& parameters);
  2033. IImageLoader.h
  2034. Changed parameters to use io::path
  2035. virtual bool isALoadableFileExtension(const io::path& filename) const = 0;
  2036. IGUIWindow.h
  2037. New methods
  2038. virtual bool isDraggable() const = 0;
  2039. virtual void setDraggable(bool draggable) = 0;
  2040. virtual void setDrawBackground(bool draw) = 0;
  2041. virtual bool getDrawBackground() const = 0;
  2042. virtual void setDrawTitlebar(bool draw) = 0;
  2043. virtual bool getDrawTitlebar() const = 0;
  2044. ICameraSceneNode.h
  2045. New methods
  2046. virtual void setViewMatrixAffector(const core::matrix4& affector) =0;
  2047. virtual const core::matrix4& getViewMatrixAffector() const =0;
  2048. EGUIElementTypes.h
  2049. New enum value
  2050. EGUIET_TREE_VIEW,
  2051. IImageWriter.h
  2052. Changed parameters to use io::path
  2053. virtual bool isAWriteableFileExtension(const io::path& filename) const = 0;
  2054. SIrrCreationParameters.h
  2055. Added members
  2056. E_DEVICE_TYPE DeviceType;
  2057. bool Doublebuffer;
  2058. bool Stereobuffer;
  2059. Changed signedness
  2060. core::dimension2d<u32> WindowSize;
  2061. Changed type (from bool)
  2062. u8 AntiAlias;
  2063. matrix4.h
  2064. New methods
  2065. bool isOrthogonal() const;
  2066. CMatrix4<T>& buildRotateFromTo(const core::vector3df& from, const core::vector3df& to);
  2067. void setRotationCenter(const core::vector3df& center, const core::vector3df& translate);
  2068. void buildAxisAlignedBillboard( const core::vector3df& camPos,
  2069. const core::vector3df& center, const core::vector3df& translation,
  2070. const core::vector3df& axis, const core::vector3df& from);
  2071. IWriteFile.h
  2072. Changed parameters to use io::path
  2073. virtual const path& getFileName() const = 0;
  2074. IGUITable.h
  2075. New methods
  2076. virtual void setSelected( s32 index ) = 0;
  2077. Changed type (from wide c string)
  2078. virtual void setCellText(u32 rowIndex, u32 columnIndex, const core::stringw& text) = 0;
  2079. virtual void setCellText(u32 rowIndex, u32 columnIndex, const core::stringw& text, video::SColor color) = 0;
  2080. SKeyMap.h
  2081. New enum value
  2082. EKA_CROUCH,
  2083. IGUIFont.h
  2084. Changed type (from wide c string)
  2085. virtual void draw(const core::stringw& text, const core::rect<s32>& position,
  2086. video::SColor color, bool hcenter=false, bool vcenter=false,
  2087. const core::rect<s32>* clip=0) = 0;
  2088. Changed signedness
  2089. virtual core::dimension2d<u32> getDimension(const wchar_t* text) const = 0;
  2090. New method
  2091. virtual void setInvisibleCharacters( const wchar_t *s ) = 0;
  2092. IMeshCache.h
  2093. Changed parameters to use io::path
  2094. virtual void addMesh(const io::path& filename, IAnimatedMesh* mesh) = 0;
  2095. virtual IAnimatedMesh* getMeshByFilename(const io::path& filename) = 0;
  2096. virtual const io::path& getMeshFilename(u32 index) const = 0;
  2097. virtual const io::path& getMeshFilename(const IAnimatedMesh* const mesh) const = 0;
  2098. virtual const io::path& getMeshFilename(const IMesh* const mesh) const = 0;
  2099. virtual bool setMeshFilename(u32 index, const io::path& filename) = 0;
  2100. virtual bool setMeshFilename(const IAnimatedMesh* const mesh, const io::path& filename) = 0;
  2101. virtual bool setMeshFilename(const IMesh* const mesh, const io::path& filename) = 0;
  2102. virtual bool isMeshLoaded(const io::path& filename) = 0;
  2103. IGUIButton.h
  2104. Added default value
  2105. virtual void setImage(video::ITexture* image=0) = 0;
  2106. virtual void setPressedImage(video::ITexture* image=0) = 0;
  2107. virtual void setSpriteBank(IGUISpriteBank* bank=0) = 0;
  2108. virtual void setIsPushButton(bool isPushButton=true) = 0;
  2109. virtual void setPressed(bool pressed=true) = 0;
  2110. virtual void setUseAlphaChannel(bool useAlphaChannel=true) = 0;
  2111. virtual void setDrawBorder(bool border=true) = 0;
  2112. New methods
  2113. virtual void setScaleImage(bool scaleImage=true) = 0;
  2114. virtual bool isScalingImage() const = 0;
  2115. position2d.h
  2116. Replaced by vector2d
  2117. IGUIImageList.h
  2118. New interface
  2119. class IGUIImageList : public virtual IReferenceCounted
  2120. rect.h
  2121. Added second template parameter to allow mismatched signedness
  2122. template <class U>
  2123. rect(const position2d<T>& pos, const dimension2d<U>& size)
  2124. IParticleEmitter.h
  2125. Removed wrong overrides
  2126. virtual void serializeAttributes(io::IAttributes* out,
  2127. io::SAttributeReadWriteOptions* options=0) const {}
  2128. virtual s32 deserializeAttributes(s32 startIndex, io::IAttributes* in,
  2129. io::SAttributeReadWriteOptions* options=0) { return 0; }
  2130. IOSOperator.h
  2131. Return const string
  2132. virtual const c8* getTextFromClipboard() const = 0;
  2133. IGUIElement.h
  2134. Signedness change
  2135. void setMaxSize(core::dimension2du size)
  2136. void setMinSize(core::dimension2du size)
  2137. IReadFile.h
  2138. Changed parameters to use io::path
  2139. virtual const io::path& getFileName() const = 0;
  2140. IReadFile* createReadFile(const io::path& fileName);
  2141. IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize);
  2142. IReadFile* createMemoryReadFile(void* memory, long size, const io::path& fileName, bool deleteMemoryWhenDropped);
  2143. IGUITabControl.h
  2144. New methods
  2145. virtual void setTabMaxWidth(s32 width ) = 0;
  2146. virtual s32 getTabMaxWidth() const = 0;
  2147. IParticleAffector.h
  2148. Removed wrong overrides
  2149. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const {}
  2150. virtual s32 deserializeAttributes(s32 startIndex, io::IAttributes* in, io::SAttributeReadWriteOptions* options=0) { return 0; }
  2151. ILogger.h
  2152. New method
  2153. virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) = 0;
  2154. vector2d.h
  2155. New methods
  2156. vector2d(const dimension2d<T>& other) : X(other.Width), Y(other.Height) {}
  2157. vector2d<T>& operator=(const dimension2d<T>& other) { X = other.Width; Y = other.Height; return *this; }
  2158. vector2d<T> operator+(const dimension2d<T>& other) const { return vector2d<T>(X + other.Width, Y + other.Height); }
  2159. vector2d<T>& operator+=(const dimension2d<T>& other) { X += other.Width; Y += other.Height; return *this; }
  2160. vector2d<T> operator-(const dimension2d<T>& other) const { return vector2d<T>(X - other.Width, Y - other.Height); }
  2161. vector2d<T>& operator-=(const dimension2d<T>& other) { X -= other.Width; Y -= other.Height; return *this; }
  2162. // These methods are declared in dimension2d, but need definitions of vector2d
  2163. template<class T>
  2164. dimension2d<T>::dimension2d(const vector2d<T>& other) : Width(other.X), Height(other.Y) { }
  2165. template<class T>
  2166. bool dimension2d<T>::operator==(const vector2d<T>& other) const { return Width == other.X && Height == other.Y; }
  2167. Changes for Version 1.6.1
  2168. -------------------------
  2169. This is again just a bugfix release. However, some minor API changes have happened. The most important one is the removal of lins anti-aliasing from SMaterial's default values. Please add that line smoothing flag to the materials you want to be smoothed. But note that this may lead to drastically reduced performance, if no multi-sampling is active.
  2170. IFileList.h
  2171. new methods
  2172. virtual u32 getID(u32 index) const = 0;
  2173. virtual u32 addItem(const io::path& fullPath, u32 size, bool isDirectory, u32 id=0) = 0;
  2174. virtual void sort() = 0;
  2175. IrrCompileConfig.h
  2176. Removed auto recognition of Solaris OS, please define the setting on your own if you need it
  2177. _IRR_SOLARIS_PLATFORM_
  2178. IGUITreeView.h
  2179. removed methods (use automatically generated versions)
  2180. IGUITreeViewNode() {}
  2181. virtual ~IGUITreeViewNode() {}
  2182. virtual ~IGUITreeView() {}
  2183. IFileSystem.h
  2184. new method
  2185. virtual IFileList* createEmptyFileList(const io::path& path, bool ignoreCase, bool ignorePaths) =0;
  2186. SMaterial.h
  2187. Removed default value (EAAM_LINE_SMOOTH from AntiAliasing)
  2188. ZBuffer(ECFN_LESSEQUAL), AntiAliasing(EAAM_SIMPLE), ColorMask(ECP_ALL),
  2189. IGUISkin.h
  2190. new enum value
  2191. EGST_COUNT
  2192. Changes for Version 1.7
  2193. -------------------------
  2194. This version has less API-breaking changes than the previous major changes. It has many new features, which simply add methods. All those changes, which affect old methods or structures are mostly put in parallel to the old (and now deprecated) methods. Only a few things are changed without backward compatibility: The texture wrap mode is split into separate U and V modes. The beginScene void* parameter has been replaced by an SExposedVideoData. Simply wrap the pointer with this struct and it should work again.
  2195. EMIE_LMOUSE_DOUBLE_CLICK replaces EMIE_MOUSE_DOUBLE_CLICK and EMIE_LMOUSE_TRIPLE_CLICK replaces EMIE_MOUSE_TRIPLE_CLICK
  2196. Elements used in the array container need now to have an operator=
  2197. Here comes the full list:
  2198. path.h
  2199. New type
  2200. struct SNamedPath
  2201. triangle3d.h
  2202. New method
  2203. bool isTotalOutsideBox(const aabbox3d<T>& box) const
  2204. ESceneNodeTypes.h
  2205. Changed enum value (from octt)
  2206. ESNT_OCTREE = MAKE_IRR_ID('o','c','t','r'),
  2207. SColor.h
  2208. New method
  2209. f32 getLightness() const
  2210. driverChoice.h
  2211. New method
  2212. static irr::video::E_DRIVER_TYPE driverChoiceConsole(bool allDrivers=true)
  2213. ITexture.h
  2214. New parameter
  2215. virtual void regenerateMipMapLevels(void* mipmapData=0) = 0;
  2216. Changed return value (from io:path)
  2217. const io::SNamedPath& getName() const { return NamedPath; }
  2218. SceneParameters.h
  2219. New scene parameters
  2220. const c8* const OBJ_TEXTURE_PATH = "OBJ_TexturePath";
  2221. const c8* const B3D_TEXTURE_PATH = "B3D_TexturePath";
  2222. IMeshManipulator.h
  2223. Not virtual anymore
  2224. void setVertexColorAlpha(IMesh* mesh, s32 alpha) const
  2225. void setVertexColors(IMesh* mesh, video::SColor color) const
  2226. void scale(IMeshBuffer* buffer, const core::vector3df& factor) const
  2227. void scaleMesh(IMesh* mesh, const core::vector3df& factor) const
  2228. void scaleTCoords(scene::IMesh* mesh, const core::vector2df& factor, u32 level=1) const
  2229. void scaleTCoords(scene::IMeshBuffer* buffer, const core::vector2df& factor, u32 level=1) const
  2230. void transform(IMesh* mesh, const core::matrix4& m) const
  2231. void transform(IMeshBuffer* buffer, const core::matrix4& m) const
  2232. New method
  2233. template <typename Functor>
  2234. bool apply(const Functor& func, IMeshBuffer* buffer, bool boundingBoxUpdate=false) const
  2235. template <typename Functor>
  2236. bool apply(const Functor& func, IMesh* mesh, bool boundingBoxUpdate=false) const
  2237. virtual void recalculateTangents(IMesh* mesh, bool recalculateNormals=false,
  2238. bool smooth=false, bool angleWeighted=false) const=0;
  2239. void scale(IMesh* mesh, const core::vector3df& factor) const
  2240. New parameter
  2241. virtual IMesh* createMeshWithTangents(IMesh* mesh, bool recalculateNormals=false, bool smooth=false, bool angleWeighted=false, bool recalculateTangents=true) const = 0;
  2242. coreutil.h
  2243. Changed return type and parameters (from stringc/w)
  2244. inline io::path& cutFilenameExtension ( io::path &dest, const io::path &source )
  2245. inline io::path& getFileNameExtension ( io::path &dest, const io::path &source )
  2246. inline io::path& deletePathFromFilename(io::path& filename)
  2247. Fixed behavior
  2248. inline io::path& deletePathFromPath(io::path& filename, s32 pathCount)
  2249. ICursorControl.h
  2250. Return const-ref
  2251. virtual const core::position2d<s32>& getPosition() = 0;
  2252. irrArray.h
  2253. Fixed allocator template usage
  2254. array(const array<T, TAlloc>& other) : data(0)
  2255. const array<T, TAlloc>& operator=(const array<T, TAlloc>& other)
  2256. bool operator == (const array<T, TAlloc>& other) const
  2257. bool operator != (const array<T, TAlloc>& other) const
  2258. Changed behavior for free_when_destroyed
  2259. void set_pointer(T* newPointer, u32 size, bool _is_sorted=false, bool _free_when_destroyed=true)
  2260. void set_free_when_destroyed(bool f)
  2261. irrMap.h
  2262. Renamed method (from isEmpty)
  2263. bool empty() const
  2264. New method
  2265. void swap(map<KeyType, ValueType>& other)
  2266. IAnimatedMesh.h
  2267. virtual f32 getAnimationSpeed() const =0;
  2268. IAttributes.h
  2269. Made parameters const-ref
  2270. virtual void addArray(const c8* attributeName, const core::array<core::stringw>& value) = 0;
  2271. virtual void setAttribute(const c8* attributeName, const core::array<core::stringw>& value) = 0;
  2272. virtual void setAttribute(s32 index, const core::array<core::stringw>& value) = 0;
  2273. ISceneManager.h
  2274. Renamed method (from OctTree)
  2275. virtual IMeshSceneNode* addOctreeSceneNode(IAnimatedMesh* mesh, ISceneNode* parent=0,
  2276. s32 id=-1, s32 minimalPolysPerNode=512, bool alsoAddIfMeshPointerZero=false) = 0;
  2277. virtual IMeshSceneNode* addOctreeSceneNode(IMesh* mesh, ISceneNode* parent=0,
  2278. s32 id=-1, s32 minimalPolysPerNode=256, bool alsoAddIfMeshPointerZero=false) = 0;
  2279. virtual ITriangleSelector* createOctreeTriangleSelector(IMesh* mesh,
  2280. ISceneNode* node, s32 minimalPolysPerNode=32) = 0;
  2281. New parameter (makeActive)
  2282. virtual ICameraSceneNode* addCameraSceneNode(ISceneNode* parent = 0,
  2283. const core::vector3df& position = core::vector3df(0,0,0),
  2284. const core::vector3df& lookat = core::vector3df(0,0,100),
  2285. s32 id=-1, bool makeActive=true) = 0;
  2286. virtual ICameraSceneNode* addCameraSceneNodeMaya(ISceneNode* parent = 0,
  2287. f32 rotateSpeed = -1500.0f, f32 zoomSpeed = 200.0f,
  2288. f32 translationSpeed = 1500.0f, s32 id=-1,
  2289. bool makeActive=true) = 0;
  2290. virtual ICameraSceneNode* addCameraSceneNodeFPS(ISceneNode* parent = 0,
  2291. f32 rotateSpeed = 100.0f, f32 moveSpeed = 0.5f, s32 id=-1,
  2292. SKeyMap* keyMapArray=0, s32 keyMapSize=0, bool noVerticalMovement=false,
  2293. f32 jumpSpeed = 0.f, bool invertMouse=false,
  2294. bool makeActive=true) = 0;
  2295. Make parameter const
  2296. virtual IMeshSceneNode* addQuake3SceneNode(const IMeshBuffer* meshBuffer, const quake3::IShader * shader,
  2297. ISceneNode* parent=0, s32 id=-1) = 0;
  2298. New parameter (loop, pingpong)
  2299. virtual ISceneNodeAnimator* createFollowSplineAnimator(s32 startTime,
  2300. const core::array< core::vector3df >& points,
  2301. f32 speed = 1.0f, f32 tightness = 0.5f, bool loop=true, bool pingpong=false) = 0;
  2302. SMaterialLayer.h
  2303. New clamp modes
  2304. ETC_MIRROR_CLAMP, ETC_MIRROR_CLAMP_TO_EDGE, ETC_MIRROR_CLAMP_TO_BORDER
  2305. New material layer modes (replaces TextureWrap)
  2306. TextureWrapU(ETC_REPEAT), TextureWrapV(ETC_REPEAT)
  2307. vector3d.h
  2308. Use tolerance to compare, changed order function to total order
  2309. bool operator<=(const vector3d<T>&other) const
  2310. bool operator>=(const vector3d<T>&other) const
  2311. bool operator<(const vector3d<T>&other) const
  2312. bool operator>(const vector3d<T>&other) const
  2313. New method
  2314. vector3d<T> getSphericalCoordinateAngles()
  2315. New method specializations
  2316. template <>
  2317. inline vector3d<s32> vector3d<s32>::operator /(s32 val) const {return core::vector3d<s32>(X/val,Y/val,Z/val);}
  2318. template <>
  2319. inline vector3d<s32>& vector3d<s32>::operator /=(s32 val) {X/=val;Y/=val;Z/=val; return *this;}
  2320. SExposedVideoData.h
  2321. New constructors
  2322. SExposedVideoData() {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=0;}
  2323. explicit SExposedVideoData(void* Window) {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=Window;}
  2324. IGUIEnvironment.h
  2325. New method
  2326. virtual IGUIFont* addFont(const io::path& name, IGUIFont* font) = 0;
  2327. New parameter (image)
  2328. virtual IGUIWindow* addMessageBox(const wchar_t* caption, const wchar_t* text=0,
  2329. bool modal = true, s32 flags = EMBF_OK, IGUIElement* parent=0, s32 id=-1, video::ITexture* image=0) = 0;
  2330. IGeometryCreator.h
  2331. New method
  2332. IMesh* createPlaneMesh(const core::dimension2d<f32>& tileSize,
  2333. const core::dimension2d<u32>& tileCount,
  2334. video::SMaterial* material,
  2335. const core::dimension2d<f32>& textureRepeatCount) const
  2336. IFileArchive.h
  2337. New archive type
  2338. EFAT_NPK = MAKE_IRR_ID('N','P','K', 0),
  2339. New member for storing the password of AES-encrypted archives
  2340. core::stringc Password;
  2341. IFileSystem.h
  2342. New parameter (password)
  2343. virtual bool addFileArchive(const path& filename, bool ignoreCase=true,
  2344. bool ignorePaths=true,
  2345. E_FILE_ARCHIVE_TYPE archiveType=EFAT_UNKNOWN,
  2346. const core::stringc& password="") =0;
  2347. IrrlichtDevice.h
  2348. New method
  2349. virtual void clearSystemMessages() = 0;
  2350. irrMath.h
  2351. Changed constant (from 1)
  2352. const s32 ROUNDING_ERROR_S32 = 0;
  2353. New method
  2354. template <class T>
  2355. inline void swap(T& a, T& b)
  2356. IGPUProgrammingServices.h
  2357. New parameters (for geometry shaders)
  2358. virtual s32 addHighLevelShaderMaterial
  2359. virtual s32 addHighLevelShaderMaterialFromFiles
  2360. virtual s32 addHighLevelShaderMaterialFromFiles
  2361. New overload (for calling with geometry shaders)
  2362. s32 addHighLevelShaderMaterial
  2363. s32 addHighLevelShaderMaterialFromFiles
  2364. s32 addHighLevelShaderMaterialFromFiles
  2365. ISceneNode.h
  2366. New types
  2367. typedef core::list<ISceneNode*> ISceneNodeList;
  2368. typedef core::list<ISceneNodeAnimator*> ISceneNodeAnimatorList;
  2369. IEventReceiver.h
  2370. Renamed events (split from EMIE_MOUSE_*)
  2371. EMIE_LMOUSE_DOUBLE_CLICK,
  2372. EMIE_RMOUSE_DOUBLE_CLICK,
  2373. EMIE_MMOUSE_DOUBLE_CLICK,
  2374. EMIE_LMOUSE_TRIPLE_CLICK,
  2375. EMIE_RMOUSE_TRIPLE_CLICK,
  2376. EMIE_MMOUSE_TRIPLE_CLICK,
  2377. IGUISpriteBank.h
  2378. New method
  2379. virtual s32 addTextureAsSprite(video::ITexture* texture) = 0;
  2380. virtual void clear() = 0;
  2381. SMaterial.h
  2382. Changed binary packing (non-visible from user calls)
  2383. inline f32 pack_texureBlendFunc ( const E_BLEND_FACTOR srcFact, const E_BLEND_FACTOR dstFact, const E_MODULATE_FUNC modulate=EMFN_MODULATE_1X, const u32 alphaSource=EAS_TEXTURE )
  2384. IGUISkin.h
  2385. New values
  2386. EGDS_MESSAGE_BOX_GAP_SPACE,
  2387. EGDS_MESSAGE_BOX_MIN_TEXT_WIDTH,
  2388. EGDS_MESSAGE_BOX_MAX_TEST_WIDTH,
  2389. EGDS_MESSAGE_BOX_MIN_TEXT_HEIGHT,
  2390. EGDS_MESSAGE_BOX_MAX_TEXT_HEIGHT,
  2391. New parameter (checkClientArea)
  2392. virtual core::rect<s32> draw3DWindowBackground(IGUIElement* element,
  2393. bool drawTitleBar, video::SColor titleBarColor,
  2394. const core::rect<s32>& rect,
  2395. const core::rect<s32>* clip=0,
  2396. core::rect<s32>* checkClientArea=0) = 0;
  2397. quaternion.h
  2398. New operator
  2399. bool operator!=(const quaternion& other) const;
  2400. New method
  2401. inline quaternion& set(const core::quaternion& quat);
  2402. inline bool equals(const quaternion& other,
  2403. const f32 tolerance = ROUNDING_ERROR_f32 ) const;
  2404. irrList.h
  2405. New method
  2406. u32 size() const
  2407. void swap(list<T>& other)
  2408. IVideoDriver.h
  2409. New render targets
  2410. ERT_MULTI_RENDER_TEXTURES
  2411. New class
  2412. struct IRenderTarget
  2413. Changed parameter (from void*)
  2414. virtual bool beginScene(bool backBuffer=true, bool zBuffer=true,
  2415. SColor color=SColor(255,0,0,0),
  2416. const SExposedVideoData& videoData=SExposedVideoData(),
  2417. core::rect<s32>* sourceRect=0) =0;
  2418. New parameter (mipmapData)
  2419. virtual ITexture* addTexture(const io::path& name, IImage* image, void* mipmapData=0) = 0;
  2420. New method
  2421. virtual bool setRenderTarget(const core::array<video::IRenderTarget>& texture,
  2422. bool clearBackBuffer=true, bool clearZBuffer=true,
  2423. SColor color=video::SColor(0,0,0,0)) =0;
  2424. void drawIndexedTriangleFan(const S3DVertexTangents* vertices,
  2425. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2426. virtual void getFog(SColor& color, E_FOG_TYPE& fogType,
  2427. f32& start, f32& end, f32& density,
  2428. bool& pixelFog, bool& rangeFog) = 0;
  2429. virtual SMaterial& getMaterial2D() =0;
  2430. virtual void enableMaterial2D(bool enable=true) =0;
  2431. virtual core::dimension2du getMaxTextureSize() const =0;
  2432. Made non-virtual
  2433. void drawIndexedTriangleList(const S3DVertex* vertices,
  2434. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2435. void drawIndexedTriangleList(const S3DVertex2TCoords* vertices,
  2436. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2437. void drawIndexedTriangleList(const S3DVertexTangents* vertices,
  2438. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2439. void drawIndexedTriangleFan(const S3DVertex* vertices,
  2440. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2441. void drawIndexedTriangleFan(const S3DVertex2TCoords* vertices,
  2442. u32 vertexCount, const u16* indexList, u32 triangleCount)
  2443. EDriverFeatures.h
  2444. New driver feature enums
  2445. EVDF_MULTIPLE_RENDER_TARGETS,
  2446. EVDF_MRT_BLEND,
  2447. EVDF_MRT_COLOR_MASK,
  2448. EVDF_MRT_BLEND_FUNC,
  2449. EVDF_GEOMETRY_SHADER,
  2450. IGUIWindow.h
  2451. New method
  2452. virtual core::rect<s32> getClientRect() const = 0;
  2453. IGUIContextMenu.h
  2454. New enum
  2455. enum ECONTEXT_MENU_CLOSE
  2456. New method
  2457. virtual void setCloseHandling(ECONTEXT_MENU_CLOSE onClose) = 0;
  2458. virtual ECONTEXT_MENU_CLOSE getCloseHandling() const = 0;
  2459. virtual u32 insertItem(u32 idx, const wchar_t* text, s32 commandId=-1, bool enabled=true,
  2460. bool hasSubMenu=false, bool checked=false, bool autoChecking=false) = 0;
  2461. virtual s32 findItemWithCommandId(s32 commandId, u32 idxStartSearch=0) const = 0;
  2462. virtual void setItemAutoChecking(u32 idx, bool autoChecking) = 0;
  2463. virtual bool getItemAutoChecking(u32 idx) const = 0;
  2464. virtual void setEventParent(IGUIElement *parent) = 0;
  2465. New parameter
  2466. virtual u32 addItem(const wchar_t* text, s32 commandId=-1, bool enabled=true,
  2467. bool hasSubMenu=false, bool checked=false, bool autoChecking=false) = 0;
  2468. SIrrCreationParameters.h
  2469. New parameter (LoggingLevel)
  2470. createDevice
  2471. matrix4.h
  2472. New method
  2473. bool equals(const core::CMatrix4<T>& other, const T tolerance=(T)ROUNDING_ERROR_f64) const;
  2474. SSkinMeshBuffer.h
  2475. Renamed method (from MoveTo_2TCoords)
  2476. virtual void convertTo2TCoords()
  2477. Renamed method (from MoveTo_Tangents)
  2478. virtual void convertToTangents()
  2479. SVertexManipulator.h
  2480. New classes (for vertex manipulation)
  2481. class SVertexColorSetManipulator : public IVertexManipulator
  2482. class SVertexColorSetAlphaManipulator : public IVertexManipulator
  2483. class SVertexColorInvertManipulator : public IVertexManipulator
  2484. class SVertexColorThresholdManipulator : public IVertexManipulator
  2485. class SVertexColorBrightnessManipulator : public IVertexManipulator
  2486. class SVertexColorContrastManipulator : public IVertexManipulator
  2487. class SVertexColorContrastBrightnessManipulator : public IVertexManipulator
  2488. class SVertexColorGammaManipulator : public IVertexManipulator
  2489. ;
  2490. class SVertexColorScaleManipulator : public IVertexManipulator
  2491. class SVertexColorDesaturateToLightnessManipulator : public IVertexManipulator
  2492. class SVertexColorDesaturateToAverageManipulator : public IVertexManipulator
  2493. class SVertexColorDesaturateToLuminanceManipulator : public IVertexManipulator
  2494. class SVertexColorInterpolateLinearManipulator : public IVertexManipulator
  2495. class SVertexColorInterpolateQuadraticManipulator : public IVertexManipulator
  2496. class SVertexPositionScaleManipulator : public IVertexManipulator
  2497. ;
  2498. class SVertexPositionScaleAlongNormalsManipulator : public IVertexManipulator
  2499. class SVertexPositionTransformManipulator : public IVertexManipulator
  2500. class SVertexTCoordsScaleManipulator : public IVertexManipulator
  2501. IMeshCache.h
  2502. Renamed method (from getMeshByFilename)
  2503. virtual IAnimatedMesh* getMeshByName(const io::path& name) = 0;
  2504. Renamed method and changed return type (from getMeshFilename/io::path)
  2505. virtual const io::SNamedPath& getMeshName(u32 index) const = 0;
  2506. virtual const io::SNamedPath& getMeshName(const IAnimatedMesh* const mesh) const = 0;
  2507. virtual const io::SNamedPath& getMeshName(const IMesh* const mesh) const = 0;
  2508. Renamed method (from setMeshFilename)
  2509. virtual bool renameMesh(u32 index, const io::path& name) = 0;
  2510. virtual bool renameMesh(const IAnimatedMesh* const mesh, const io::path& name) = 0;
  2511. virtual bool renameMesh(const IMesh* const mesh, const io::path& name) = 0;
  2512. IGUIElement.h
  2513. Changed parameter (to const-ref)
  2514. IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment* environment, IGUIElement* parent,
  2515. s32 id, const core::rect<s32>& rectangle)
  2516. New method
  2517. virtual bool hasType(EGUI_ELEMENT_TYPE type) const
  2518. irrString.h
  2519. Changed parameter (to template with allocator) in all methods with templates
  2520. Made destructor non-virtual
  2521. ~string()
  2522. Added parameter
  2523. s32 find(const B* const str, const u32 start = 0) const
  2524. New method
  2525. void remove(T c)
  2526. void remove(const string<T,TAlloc> toRemove)
  2527. void removeChars(const string<T,TAlloc> & characters)
  2528. template<class container>
  2529. u32 split(container& ret, const T* const c, u32 count=1, bool ignoreEmptyTokens=true, bool keepSeparators=false) const
  2530. vector2d.h
  2531. Use tolerance to compare, changed order function to total order
  2532. bool operator<=(const vector2d<T>&other) const
  2533. bool operator>=(const vector2d<T>&other) const
  2534. bool operator<(const vector2d<T>&other) const
  2535. bool operator>(const vector2d<T>&other) const