if (node)
{
- irr_scene_setMaterialFlagAM(node, irr_video_EMF_LIGHTING, 0);
+ irr_scene_setMaterialFlag(node, irr_video_EMF_LIGHTING, 0);
irr_scene_setMD2Animation(node, irr_scene_EMAT_STAND);
irr_video_ITexture* texture = irr_video_getTexture(driver, "media/sydney.bmp");
- irr_scene_setMaterialTextureAM(node, 0, texture);
+ irr_scene_setMaterialTexture(node, 0, texture);
}
// camera
irr_scene_ISceneNode* node;
if (mesh)
- node = irr_scene_addOctreeSceneNodeAM(smgr, mesh, NULL, -1, 512, 0);
+ node = irr_scene_addOctreeSceneNode(smgr, mesh, NULL, -1, 512, 0);
if (node)
{
#ifndef __C_I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
#define __C_I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
-#include "EMaterialFlags.h"
#include "IAnimatedMeshMD2.h"
-#include "ITexture.h"
typedef void irr_scene_IAnimatedMeshSceneNode;
extern "C" {
#endif
- void
- irr_scene_setMaterialFlagAM(irr_scene_IAnimatedMeshSceneNode* node,
- irr_video_E_MATERIAL_FLAG flag,
- int newvalue);
-
- void
- irr_scene_setMaterialTextureAM(irr_scene_IAnimatedMeshSceneNode* node,
- unsigned int textureLayer,
- irr_video_ITexture* texture);
-
int
irr_scene_setMD2Animation(irr_scene_IAnimatedMeshSceneNode* node,
irr_scene_EMD2_ANIMATION_TYPE anim);
irr_video_SMaterial* (*getMaterial)(unsigned int i));
irr_scene_IMeshSceneNode*
- irr_scene_addOctreeSceneNodeAM(irr_scene_ISceneManager* smgr,
- irr_scene_IAnimatedMesh* mesh,
- irr_scene_ISceneNode* parent,
- int id,
- int minimalPolysPerNode,
- int alsoAddIfMeshPointerZero);
+ irr_scene_addOctreeSceneNode(irr_scene_ISceneManager* smgr,
+ irr_scene_IAnimatedMesh* mesh,
+ irr_scene_ISceneNode* parent,
+ int id,
+ int minimalPolysPerNode,
+ int alsoAddIfMeshPointerZero);
void
irr_scene_drawAll(irr_scene_ISceneManager* smgr);
#include "IAnimatedMeshSceneNode.h"
extern "C" {
- void
- irr_scene_setMaterialFlagAM(irr_scene_IAnimatedMeshSceneNode* node,
- irr_video_E_MATERIAL_FLAG flag,
- int newvalue)
- {
- ((irr::scene::IAnimatedMeshSceneNode*)node)
- ->setMaterialFlag((irr::video::E_MATERIAL_FLAG)flag,
- newvalue);
- }
-
- void
- irr_scene_setMaterialTextureAM(irr_scene_IAnimatedMeshSceneNode* node,
- unsigned int textureLayer,
- irr_video_ITexture* texture)
- {
- ((irr::scene::IAnimatedMeshSceneNode*)node)
- ->setMaterialTexture(textureLayer,
- (irr::video::ITexture*)texture);
- }
-
int
irr_scene_setMD2Animation(irr_scene_IAnimatedMeshSceneNode* node,
irr_scene_EMD2_ANIMATION_TYPE anim)
}
irr_scene_IMeshSceneNode*
- irr_scene_addOctreeSceneNodeAM(irr_scene_ISceneManager* smgr,
- irr_scene_IAnimatedMesh* mesh,
- irr_scene_ISceneNode* parent,
- int id,
- int minimalPolysPerNode,
- int alsoAddIfMeshPointerZero)
+ irr_scene_addOctreeSceneNode(irr_scene_ISceneManager* smgr,
+ irr_scene_IAnimatedMesh* mesh,
+ irr_scene_ISceneNode* parent,
+ int id,
+ int minimalPolysPerNode,
+ int alsoAddIfMeshPointerZero)
{
return ((irr::scene::ISceneManager*)smgr)
->addOctreeSceneNode((irr::scene::IAnimatedMesh*)mesh,