Functions | |
| HRESULT | D3DCreate (HWND hWnd, DWORD dwWidth, DWORD dwHeight, CVD3D &d3d) |
| This function creates a Direct3D object for the given window. | |
| HRESULT | D3DGetAvailableTextureMemory (CVD3D d3d, UINT &AvailableMemory) |
| This function returns the amount of available physical memory of the GPU card in MByte. | |
| HRESULT | D3DGetProjectionType (CVD3D d3d, TProjectionType &ProjType) |
| This function returns the current projection type used to render images. | |
| HRESULT | D3DGetWorldView (CVD3D d3d, float &fRotX, float &fRotY, float &fRotZ, float &fTransX, float &fTransY, float &fTransZ) |
| This function returns the world view used to render images defined by a previous call to D3DSetWorldView. | |
| BOOL | D3DIsD3D (OBJ d3d) |
| This function checks if the given handle points to a CVD3D type. | |
| BOOL | D3DIsObject (OBJ d3dObject) |
| This function checks if the given handle points to a CVD3DOBJECT type or not. | |
| HRESULT | D3DSetProjectionType (CVD3D d3d, TProjectionType ProjType) |
| This function sets the projection type used to render images to the given value. | |
| HRESULT | D3DSetWorldView (CVD3D d3d, float fRotX, float fRotY, float fRotZ, float fTransX, float fTransY, float fTransZ) |
| This function sets the world view used to render images by defining translations in x, y, and z as well as rotations around the x, y and z-axis. | |
| HRESULT | D3DSetWorldViewIdentity (CVD3D d3d) |
| This function resets the world view used to render to an identity matrix, meaning no rotation and translation is applied. | |
| HRESULT D3DCreate | ( | HWND | hWnd, |
| DWORD | dwWidth, | ||
| DWORD | dwHeight, | ||
| CVD3D & | d3d | ||
| ) |
This function creates a Direct3D object for the given window.
dwWidth and dwHeight specify the maximum image size that can be created in the context of this object.
ShareObject and ReleaseObject functions of the Image Manager. To finally free the object use ReleaseObject. | [in] | hWnd | The window handle. |
| [in] | dwWidth | The maximum width of an image that can be created. |
| [in] | dwHeight | The maximum height of an image that can be created. |
| [out] | d3d | Newly created CVD3D object. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGetAvailableTextureMemory | ( | CVD3D | d3d, |
| UINT & | AvailableMemory | ||
| ) |
This function returns the amount of available physical memory of the GPU card in MByte.
| [in] | d3d | The D3D context. |
| [out] | AvailableMemory | Amount of available video memory in MByte. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGetProjectionType | ( | CVD3D | d3d, |
| TProjectionType & | ProjType | ||
| ) |
This function returns the current projection type used to render images.
Refer to the Glossary to learn more about projection types.
| [in] | d3d | The D3D context. |
| [out] | ProjType | Current projection type. See TProjectionType for possible values. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DGetWorldView | ( | CVD3D | d3d, |
| float & | fRotX, | ||
| float & | fRotY, | ||
| float & | fRotZ, | ||
| float & | fTransX, | ||
| float & | fTransY, | ||
| float & | fTransZ | ||
| ) |
This function returns the world view used to render images defined by a previous call to D3DSetWorldView.
| [in] | d3d | The D3D context. |
| [out] | fRotX | The rotation around the x-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [out] | fRotY | The rotation around the y-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [out] | fRotZ | The rotation around the z-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [out] | fTransX | The translation of the x-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
| [out] | fTransY | The translation of the y-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
| [out] | fTransZ | The translation of the z-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | BOOL D3DIsD3D | ( | OBJ | d3d | ) |
This function checks if the given handle points to a CVD3D type.
| [in] | d3d | Handle to the object to be processed. |
TRUE if it is a CVD3D object, FALSE otherwise. | BOOL D3DIsObject | ( | OBJ | d3dObject | ) |
This function checks if the given handle points to a CVD3DOBJECT type or not.
| [in] | d3dObject | Handle to the object to be processed. |
TRUE if it is a CVD3DOBJECT object, FALSE otherwise. | HRESULT D3DSetProjectionType | ( | CVD3D | d3d, |
| TProjectionType | ProjType | ||
| ) |
This function sets the projection type used to render images to the given value.
Refer to the Glossary to learn more about projection types.
| [in] | d3d | The D3D context. |
| [in] | ProjType | The new projection type. See TProjectionType for possible values. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DSetWorldView | ( | CVD3D | d3d, |
| float | fRotX, | ||
| float | fRotY, | ||
| float | fRotZ, | ||
| float | fTransX, | ||
| float | fTransY, | ||
| float | fTransZ | ||
| ) |
This function sets the world view used to render images by defining translations in x, y, and z as well as rotations around the x, y and z-axis.
| [in] | d3d | The Direct3DObject |
| [in] | fRotX | The rotation around the x-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [in] | fRotY | The rotation around the y-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [in] | fRotZ | The rotation around the z-axis. The rotation is given in the range of 0 degree to 360 degrees. |
| [in] | fTransX | The translation of the x-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
| [in] | fTransY | The translation of the y-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
| [in] | fTransZ | The translation of the z-axis. A value of 1 corresponds to a shift of max(ImageWidth, ImageHeight)/2 e.g., to the right. |
0 if no error occurred, otherwise a value != 0 indicates the error code. | HRESULT D3DSetWorldViewIdentity | ( | CVD3D | d3d | ) |
This function resets the world view used to render to an identity matrix, meaning no rotation and translation is applied.
| [in] | d3d | The D3D context. |
0 if no error occurred, otherwise a value != 0 indicates the error code.