3ds Max C++ API Reference
Loading...
Searching...
No Matches
IHardwareRendererST Class Reference

#include <ihardwarerenderer.h>

+ Inheritance diagram for IHardwareRendererST:

Public Member Functions

virtual Interface_ID GetID ()
 
- Public Member Functions inherited from IHardwareRenderer
virtual Interface_ID GetID ()
 
virtual LifetimeType LifetimeControl ()
 
virtual int GetMaxTexStages ()=0
 
virtual int GetNumActiveWindows ()=0
 
virtual bool UpdateScreen (GFX_ESCAPE_FN fn)=0
 
virtual bool CanDepthPeel ()=0
 
virtual void CreateLayer (int layerNum)=0
 
virtual void BlendLayers ()=0
 
virtual void StartNode ()=0
 
virtual void EndNode (GFX_ESCAPE_FN fn)=0
 
virtual void SetColor (ColorType t, D3DXCOLOR *pClr)=0
 
virtual void SetMaterial (HardwareMaterial *pMtl)=0
 
virtual D3DXCOLOR * GetDiffuseColor ()=0
 
virtual bool DisplayAllTriangleEdges ()=0
 
virtual void SetDisplayAllTriangleEdges (bool displayAllEdges)=0
 
virtual bool CanCacheMeshData ()=0
 
virtual void DrawMesh (DWORD type, DWORD nPrim, DWORD *pAttr, DWORD nComp, DWORD *pUse, DWORD **ppInd, DWORD fComp, DWORD *pLen, float **ppData, DWORD attr, GFX_ESCAPE_FN fn)=0
 
virtual DWORD_PTR BuildMesh (DWORD nFaces, DWORD *pAttr, DWORD nComp, DWORD *pUse, DWORD **ppInd, DWORD fComp, DWORD *pLen, float **ppData, GFX_ESCAPE_FN fn)=0
 
virtual DWORD_PTR BuildMesh (IHardwareMesh *pHWMesh, GFX_ESCAPE_FN fn)=0
 
virtual void DrawMesh (DWORD_PTR pMesh, DWORD attr, GFX_ESCAPE_FN fn)=0
 
virtual DWORD_PTR LoadMesh (LPCMSTR filename)=0
 
virtual void SaveMesh (LPCMSTR filename, DWORD_PTR pMesh)=0
 
virtual void FreeMesh (DWORD_PTR pMesh)=0
 
virtual DWORD_PTR BuildIndexedBuffer (DWORD type, DWORD nPrim, DWORD *pAttr, DWORD nComp, DWORD *pUse, DWORD **ppInd, DWORD fComp, DWORD *pLen, float **ppData, GFX_ESCAPE_FN fn)=0
 
virtual void DrawIndexedBuffer (DWORD_PTR pBuffer, DWORD attr, GFX_ESCAPE_FN fn)=0
 
virtual void FreeIndexedBuffer (DWORD_PTR pBuffer)=0
 
virtual DWORD_PTR BuildTexture (BITMAPINFO *bmi, UINT mipLevels, DWORD usage, DWORD format)=0
 
virtual DWORD_PTR LoadTexture (LPCMSTR filename)=0
 
virtual void SaveTexture (LPCMSTR filename, DWORD_PTR pTex)=0
 
virtual void FreeTexture (DWORD_PTR pTex)=0
 
virtual DWORD_PTR BuildCubeMap (UINT size, UINT mipLevels, DWORD usage, DWORD format, DWORD_PTR *pTex)=0
 
virtual void SetCubeMapFace (DWORD_PTR pCubeMap, DWORD face, UINT mipLevel, DWORD_PTR pTex)=0
 
virtual DWORD_PTR BuildVertexDecl (DWORD nComp, DWORD *pUse, DWORD fComp)=0
 
virtual void SetVertexDecl (DWORD_PTR pVertexDecl)=0
 
virtual void FreeVertexDecl (DWORD_PTR pVertexDecl)=0
 
virtual DWORD_PTR BuildVertexShader (LPCSTR code)=0
 
virtual DWORD_PTR LoadVertexShader (LPCMSTR filename)=0
 
virtual void SaveVertexShader (LPCMSTR filename, DWORD_PTR pVertexShader)=0
 
virtual void SetVertexShader (DWORD_PTR pVertexShader)=0
 
virtual void SetVertexShaderConstant (DWORD_PTR pVertexShader, DWORD nReg, DWORD type, void *pData, DWORD nData)=0
 
virtual void FreeVertexShader (DWORD_PTR pVertexShader)=0
 
virtual DWORD_PTR BuildPixelShader (LPCSTR code)=0
 
virtual DWORD_PTR LoadPixelShader (LPCMSTR filename)=0
 
virtual void SavePixelShader (LPCMSTR filename, DWORD_PTR pPixelShader)=0
 
virtual void SetPixelShader (DWORD_PTR pPixelShader)=0
 
virtual void SetPixelShaderConstant (DWORD_PTR pPixelShader, DWORD nReg, DWORD type, void *pData, DWORD nData)=0
 
virtual void FreePixelShader (DWORD_PTR pPixelShader)=0
 
virtual DWORD_PTR BuildEffect (LPCSTR code)=0
 
virtual DWORD_PTR LoadEffect (LPCMSTR filename)=0
 
virtual void SaveEffect (LPCMSTR filename, DWORD_PTR pEffect)=0
 
virtual void SetEffectParameter (DWORD_PTR pEffect, LPCMSTR name, DWORD type, void *pData)=0
 
virtual void SetEffectTechnique (DWORD_PTR pEffect, LPCMSTR name)=0
 
virtual void BeginEffect (DWORD_PTR pEffect)=0
 
virtual void SetEffectPass (DWORD_PTR pEffect, DWORD nPass)=0
 
virtual void EndEffect (DWORD_PTR pEffect)=0
 
virtual void FreeEffect (DWORD_PTR pEffect)=0
 
virtual DWORD_PTR BeginEffectAccess (DWORD_PTR pEffect, GFX_ESCAPE_FN fn)=0
 
virtual void EndEffectAccess (GFX_ESCAPE_FN fn)=0
 
virtual DWORD_PTR BeginDeviceAccess (GFX_ESCAPE_FN fn)=0
 
virtual void EndDeviceAccess (GFX_ESCAPE_FN fn)=0
 
virtual bool ObjectDrawnByShader ()=0
 This tells the mesh / mnmesh classes whether a shader has performed the drawing already so it can simply ignore the draw call.
 
virtual void DXCacheUpdateVertexBuffer (DWORD_PTR pMesh, Point3 *vertexList, Point3 *gfxNormalList, Point3 *faceNormalList, BitArray &changedVerts, int count)=0
 This method lets you update the vertex positions of the DirectX mesh cache.
 
- Public Member Functions inherited from IHardwareShader
virtual Interface_ID GetID ()
 
virtual Interface_ID GetVSID ()=0
 
virtual Interface_ID GetPSID ()=0
 
virtual LifetimeType LifetimeControl ()
 
virtual void StartObject (Mesh *mesh)=0
 
virtual void StartObject (MNMesh *mnmesh)=0
 
virtual void InitializeShaders (Mesh *mesh, BaseInterface *pbvs, Material *mtlArray, int numMtl, GFX_ESCAPE_FN fn)=0
 
virtual void InitializeShaders (MNMesh *mnmesh, BaseInterface *pbvs, Material *mtlArray, int numMtl, GFX_ESCAPE_FN fn)=0
 
virtual bool CanTryStrips ()=0
 
virtual DWORD GetRndMode ()=0
 
virtual MaterialGetMaterial (int numMat)=0
 
virtual void SetMaterial (const Material &m, int index=0)=0
 
virtual int GetNumMultiPass (int numMtl)=0
 
virtual void SetNumMultiPass (int numPass)=0
 
virtual void DrawMeshStrips (MeshData *data, GFX_ESCAPE_FN fn)=0
 
virtual void DrawWireMesh (WireMeshData *data, GFX_ESCAPE_FN fn)=0
 
virtual void StartLines (WireMeshData *data)=0
 
virtual void AddLine (DWORD *vert, int vis)=0
 
virtual void DrawLines ()=0
 
virtual void EndLines (GFX_ESCAPE_FN fn)=0
 
virtual void StartTriangles (MeshFaceData *data)=0
 
virtual void AddTriangle (DWORD index, int *edgeVis)=0
 
virtual void DrawTriangles ()=0
 
virtual void EndTriangles (GFX_ESCAPE_FN fn)=0
 
virtual void EndObject (Mesh *mesh)=0
 
virtual void EndObject (MNMesh *mnmesh)=0
 
- Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor.
 
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport Interface_ID GetID ()
 
virtual LifetimeType LifetimeControl ()
 
virtual bool RegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual void UnRegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual BaseInterfaceAcquireInterface ()
 
virtual void ReleaseInterface ()
 
virtual void DeleteInterface ()
 
virtual BaseInterfaceCloneInterface (void *remapDir=nullptr)
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
 
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Additional Inherited Members

- Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }
 
- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

Member Function Documentation

◆ GetID()

virtual Interface_ID GetID ( )
inlinevirtual
Remarks
This method returns the unique interface ID.

Reimplemented from IHardwareRenderer.

#define HARDWARE_RENDERER_ST_INTERFACE_ID
Definition: ihardwarerenderer.h:27