#ifndef TD3DXAttributeWeightsH #define TD3DXAttributeWeightsH // ========================================================================== // File: TD3DXAttributeWeights.H // Authors: BCB_Code_Generator v2.00, // Darren Dwyer (source code, documentation, demos, website), // Hugh Edwards (documentation, icons) // Description: This file defines the TD3DXAttributeWeights Component // // "TDx9_3DX_Library v1.00" // (c) 2005 BCB-Tools.com Pty. Ltd., Sydney, Australia. // All Rights Reserved. // // Refer to the 'Licence.Txt' file for licencing & copyright information. // ========================================================================== // -------------------------------------------------------------------------- #include "TDx_Library_Defns.H" #include "TDx_Library_Functions.H" // -------------------------------------------------------------------------- #include "TDx9_3DX_Library_Defns.H" #include "TDx9_3DX_Library_Functions.H" // -------------------------------------------------------------------------- // ========================================================================== // Class: TD3DXAttributeWeights // Description: The TD3DXAttributeWeights object is used to ... // ========================================================================== #if (__BORLANDC__ >= 0x0530) // BCB Version 3 + class PACKAGE TD3DXAttributeWeights : public TComponent { // -------------------------------------------------------------------------- #else // BCB Version 1 class TD3DXAttributeWeights : public TComponent { #endif // ========================================================================== __published: // ========================================================================== // ---------------------------------------------------------------------- // Property: Binormal // Description: ... // ---------------------------------------------------------------------- __property float Binormal = { read=FGetBinormal, write=FSetBinormal, default=0 }; // ---------------------------------------------------------------------- // Property: Boundary // Description: ... // ---------------------------------------------------------------------- __property float Boundary = { read=FGetBoundary, write=FSetBoundary, default=0 }; // ---------------------------------------------------------------------- // Property: Diffuse // Description: ... // ---------------------------------------------------------------------- __property float Diffuse = { read=FGetDiffuse, write=FSetDiffuse, default=0 }; // ---------------------------------------------------------------------- // Property: Normal // Description: ... // ---------------------------------------------------------------------- __property float Normal = { read=FGetNormal, write=FSetNormal, default=0 }; // ---------------------------------------------------------------------- // Property: Position // Description: ... // ---------------------------------------------------------------------- __property float Position = { read=FGetPosition, write=FSetPosition, default=0 }; // ---------------------------------------------------------------------- // Property: Specular // Description: ... // ---------------------------------------------------------------------- __property float Specular = { read=FGetSpecular, write=FSetSpecular, default=0 }; // ---------------------------------------------------------------------- // Property: Tangent // Description: ... // ---------------------------------------------------------------------- __property float Tangent = { read=FGetTangent, write=FSetTangent, default=0 }; // ---------------------------------------------------------------------- // Event: OnError() // Description: The OnError event is called when an error occurs in the // TD3DXAttributeWeights component. // ---------------------------------------------------------------------- __property TDx_Error OnError = {read=FOnError, write=FOnError, nodefault}; // ========================================================================== public: // ========================================================================== // ---------------------------------------------------------------------- // Property: ErrorValue // Description: The ErrorValue property contains the last error value // returned from a call to a TD3DXAttributeWeights method or // fget/fset. eg. D3D_OK // or DDERR_SURFACELOST or TDX_ERROR // ---------------------------------------------------------------------- __property HRESULT ErrorValue = { read=FGetErrorValue, write=FSetErrorValue, default=D3D_OK }; // ---------------------------------------------------------------------- // Property: Size // Description: The Size property contains the size in bytes of the // internal _D3DXATTRIBUTEWEIGHTS structure. // ---------------------------------------------------------------------- __property dword Size = { read=FGetSize, write=FSetSize, nodefault }; // ---------------------------------------------------------------------- // Method: Clear() // Description: The Clear() method can be used to clear the contents of // the TD3DXAttributeWeights's internal D3DXATTRIBUTEWEIGHTS // structure. // Note: if you have manually linked a structure member to a // chunk of memory, make sure you release this memory before // calling Clear(). // ---------------------------------------------------------------------- virtual void __fastcall Clear(); // ---------------------------------------------------------------------- // Constructor() and Destructor() // ---------------------------------------------------------------------- __fastcall TD3DXAttributeWeights(TComponent* Owner); virtual __fastcall ~TD3DXAttributeWeights(); // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- __property D3DXATTRIBUTEWEIGHTS* Internal_D3DXATTRIBUTEWEIGHTS_Ptr = { read=FGetInternal_D3DXATTRIBUTEWEIGHTS_Ptr, nodefault }; void __fastcall Internal_D3DXATTRIBUTEWEIGHTS_Update(); // ========================================================================== protected: // ========================================================================== // ---------------------------------------------------------------------- // Property Access Methods // ---------------------------------------------------------------------- float __fastcall FGetBinormal(); void __fastcall FSetBinormal( float pBinormal ); float __fastcall FGetBoundary(); void __fastcall FSetBoundary( float pBoundary ); float __fastcall FGetDiffuse(); void __fastcall FSetDiffuse( float pDiffuse ); HRESULT __fastcall FGetErrorValue(); void __fastcall FSetErrorValue( HRESULT pErrorValue ); float __fastcall FGetNormal(); void __fastcall FSetNormal( float pNormal ); float __fastcall FGetPosition(); void __fastcall FSetPosition( float pPosition ); dword __fastcall FGetSize(); void __fastcall FSetSize( dword pSize ); float __fastcall FGetSpecular(); void __fastcall FSetSpecular( float pSpecular ); float __fastcall FGetTangent(); void __fastcall FSetTangent( float pTangent ); float __fastcall FGetTexcoord( dword pIndex ); void __fastcall FSetTexcoord( dword pIndex, float pTexcoord ); // ========================================================================== private: // ========================================================================== // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- D3DXATTRIBUTEWEIGHTS* __fastcall FGetInternal_D3DXATTRIBUTEWEIGHTS_Ptr(); void __fastcall FSetInternal_D3DXATTRIBUTEWEIGHTS( D3DXATTRIBUTEWEIGHTS* pD3DXATTRIBUTEWEIGHTS ); // ---------------------------------------------------------------------- // Property Variables // ---------------------------------------------------------------------- HRESULT fErrorValue; dword fSize; // ---------------------------------------------------------------------- // Structure Variables // ---------------------------------------------------------------------- D3DXATTRIBUTEWEIGHTS fD3DXATTRIBUTEWEIGHTS; // ---------------------------------------------------------------------- // Event Variables // ---------------------------------------------------------------------- TDx_Error FOnError; }; // -------------------------------------------------------------------------- #endif // --------------------------------------------------------------------------