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

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/id3d11graphicswindow.h>

Inheritance diagram for ID3D11GraphicsWindow:

Classes

struct  MaxLight
struct  MaxMaterialType

Public Types

enum class  MaxLightType { POINT = 1 , SPOT = 2 , DIRECTIONAL = 3 }
Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }

Public Member Functions

virtual Interface_ID GetID ()
virtual LifetimeType LifetimeControl ()
virtual ID3D11Device * GetDevice ()=0
 Get Direct3D Device from GFX.
virtual ID3D11Buffer * GetVertexBuffer (UINT length, DWORD FVF)=0
 Get VertexBuffer from GFX.
virtual ID3D11Buffer * GetIndexBuffer (UINT length, DXGI_FORMAT format)=0
 Get IndexBuffer from GFX.
virtual MaxSDK::Graphics::Matrix44 GetWorldXform ()=0
 Get Transforms from GFX.
virtual MaxSDK::Graphics::Matrix44 GetViewXform ()=0
virtual MaxSDK::Graphics::Matrix44 GetProjXform ()=0
virtual DWORD GetColor (ColorType t)=0
 Get Constant Color of specified type from GFX.
virtual Tab< MaxLight * > * GetLights ()=0
 Get a pointer to a 'Tab' table array of pointers to enabled Direct3D Lights from GFX.
virtual MaxMaterialType GetMaterial ()=0
 Get Material from GFX.
virtual DWORD GetTextureTiling (int texStage, int coord)=0
 Get Texture Tiling for specified texStage and texCoord from GFX.
virtual MaxSDK::Graphics::Matrix44 GetTexXform (int texStage)=0
 Get Texture Transform for specified texStage from GFX.
virtual void GetWindowDimension (int &width, int &height)=0
 Get the current viewport dimensions.
virtual BOOL IsAntiAliasingEnabled ()=0
 Get MSAA status from GFX.
Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor.
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
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.
template<class InterfaceType>
InterfaceType * GetTypedInterface ()

Additional Inherited Members

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.
static UtilExport voidmalloc_nullchecked (size_t size)
 Allocates memory via malloc without invoking 3dsmax's out of memory handler with potential CER.
static UtilExport voidcalloc_nullchecked (size_t num, size_t size)
 Allocates memory via calloc without invoking 3dsmax's out of memory handler with potential CER.
static UtilExport voidrealloc_nullchecked (void *memblock, size_t size)
 Reallocates memory via realloc without invoking 3dsmax's out of memory handler with potential CER.
static UtilExport voidLocalAlloc_nullchecked (unsigned int uFlags, size_t size)
 Allocates memory via LocalAlloc without invoking 3dsmax's out of memory handler with potential CER.

Member Enumeration Documentation

◆ MaxLightType

enum class MaxLightType
strong
Enumerator
POINT 
SPOT 
DIRECTIONAL 
36 {
37 POINT = 1,
38 SPOT = 2,
39 DIRECTIONAL = 3
40 };

Member Function Documentation

◆ GetID()

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

Reimplemented from BaseInterface.

#define D3D11_GRAPHICS_WINDOW_INTERFACE_ID
Definition id3d11graphicswindow.h:28

◆ LifetimeControl()

virtual LifetimeType LifetimeControl ( )
inlinevirtual
Remarks
This method allows inquiries into the actual lifetime policy of a client and provide a server-controlled delete notify callback.
Returns
One of the following LifetimeTypes:

noRelease

Do not call release, use interface as long as you like. This is the default.

immediateRelease

The interface is only good for one call. The release is implied so a call to release is not required.

wantsRelease

The clients are controlling the lifetime, so the interface needs a Release() when the client has finished.

serverControlled

The server controls the lifetime and will use the InterfaceNotifyCallback to inform the code when it is gone.
Default Implementation:
{ return noRelease; }

Reimplemented from BaseInterface.

71{ return noRelease; }
@ noRelease
Definition baseinterface.h:104

◆ GetDevice()

virtual ID3D11Device * GetDevice ( )
pure virtual

Get Direct3D Device from GFX.

◆ GetVertexBuffer()

virtual ID3D11Buffer * GetVertexBuffer ( UINT length,
DWORD FVF )
pure virtual

Get VertexBuffer from GFX.


Unless older Flexible Vertex Formats are in use, FVF should be zero.

◆ GetIndexBuffer()

virtual ID3D11Buffer * GetIndexBuffer ( UINT length,
DXGI_FORMAT format )
pure virtual

Get IndexBuffer from GFX.

◆ GetWorldXform()

virtual MaxSDK::Graphics::Matrix44 GetWorldXform ( )
pure virtual

Get Transforms from GFX.

◆ GetViewXform()

virtual MaxSDK::Graphics::Matrix44 GetViewXform ( )
pure virtual

◆ GetProjXform()

virtual MaxSDK::Graphics::Matrix44 GetProjXform ( )
pure virtual

◆ GetColor()

virtual DWORD GetColor ( ColorType t)
pure virtual

Get Constant Color of specified type from GFX.

◆ GetLights()

virtual Tab< MaxLight * > * GetLights ( )
pure virtual

Get a pointer to a 'Tab' table array of pointers to enabled Direct3D Lights from GFX.

◆ GetMaterial()

virtual MaxMaterialType GetMaterial ( )
pure virtual

Get Material from GFX.

◆ GetTextureTiling()

virtual DWORD GetTextureTiling ( int texStage,
int coord )
pure virtual

Get Texture Tiling for specified texStage and texCoord from GFX.

◆ GetTexXform()

virtual MaxSDK::Graphics::Matrix44 GetTexXform ( int texStage)
pure virtual

Get Texture Transform for specified texStage from GFX.

◆ GetWindowDimension()

virtual void GetWindowDimension ( int & width,
int & height )
pure virtual

Get the current viewport dimensions.

Get the current viewport dimensions. This is useful for doing multi pass rendering and the off screen buffer needs to be created the same size as the viewport currently being drawn.

Parameters
[out]width- The width of the current viewport.
[out]height- The height of the current viewport.

◆ IsAntiAliasingEnabled()

virtual BOOL IsAntiAliasingEnabled ( )
pure virtual

Get MSAA status from GFX.

Returns
TRUE if viewport MSAA is enabled. Otherwise, return FALSE.