Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

DirectXDefinition.h File Reference

DirectX定義ヘッダ. More...

#include <Windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>
#include <dsound.h>

Go to the source code of this file.

Defines

#define _WIN32_WINNT   0x400
 ウィンドウズヘッダ。WinNT4.0、Win98以降

#define D3D_DEBUG_INFO
 デバッグ時にDirectGraphicsのデバッグ情報を出力する

#define DIRECTINPUT_VERSION   0x800
 DirectInputバージョン8.

#define DirectXSucceeded(dxStatus)   ((dxStatus) >= 0)
 DirectXの成功.

#define DirectXFailed(dxStatus)   ((dxStatus) < 0)
 DirectXの失敗.

#define DirectXAssert(expression)
 DirectXのアサート.

#define DirectXAssertMessage(expression, message)
 DirectXのメッセージ付アサート.

#define DirectXCheck(expression)   DirectXAssert(expression)
 DirectXのチェック.

#define DirectXCheckMessage(expression, message)   DirectXAssertMessage(expression, message)
 DirectXのメッセージ付チェック.

#define Direct3DCreate   Direct3DCreate9
 Direct3DCreate.

#define DirectInputCreate   DirectInput8Create
 DirectInputCreate.

#define DirectInputInterfaceID   IID_IDirectInput8
 DirectInputInterfaceID.

#define DirectInputDeviceClass_GameController   DI8DEVCLASS_GAMECTRL
 DirectInputDeviceClass_GameController.

#define DirectSoundBufferInterfaceID   IID_IDirectSoundBuffer8
 DirectSoundBufferInterfaceID.

#define DirectSoundNotifyInterfaceID   IID_IDirectSoundNotify8
 DirectSoundNotifyInterfaceID.

#define DirectSound3DBufferInterfaceID   IID_IDirectSound3DBuffer8
 DirectSound3DBufferInterfaceID.

#define DirectSound3DListenerInterfaceID   IID_IDirectSound3DListener8
 DirectSound3DBufferInterfaceID.


Typedefs

typedef IDirect3D9 Direct3D
 Direct3D.

typedef IDirect3DDevice9 Direct3DDevice
 Direct3DDevice.

typedef IDirect3DStateBlock9 Direct3DStateBlock
 Direct3DStateBlock.

typedef IDirect3DSurface9 Direct3DSurface
 Direct3DSurface.

typedef IDirect3DIndexBuffer9 Direct3DIndexBuffer
 Direct3DIndexBuffer.

typedef IDirect3DVertexDeclaration9 Direct3DVertexDeclaration
 Direct3DVertexDeclaration.

typedef IDirect3DVertexBuffer9 Direct3DVertexBuffer
 Direct3DVertexBuffer.

typedef IDirect3DTexture9 Direct3DTexture
 Direct3DTexture.

typedef ID3DXBuffer Direct3DXBuffer
 Direct3DXBuffer.

typedef ID3DXMesh Direct3DXMesh
 Direct3DXMesh.

typedef IDirectInput8 DirectInput
 DirectInput.

typedef IDirectInputDevice8 DirectInputDevice
 DirectInputDevice.

typedef IDirectSound8 DirectSound
 DirectSound.

typedef IDirectSoundBuffer DirectSoundPrimaryBuffer
 DirectSoundPrimaryBuffer.

typedef IDirectSoundBuffer8 DirectSoundBuffer
 DirectSoundBuffer.

typedef IDirectSoundNotify8 DirectSoundNotify
 DirectSoundNotify.

typedef IDirectSound3DBuffer8 DirectSound3DBuffer
 DirectSound3DBuffer.

typedef IDirectSound3DListener8 DirectSound3DListener
 DirectSound3DBuffer.

typedef D3DADAPTER_IDENTIFIER9 D3DAdapterIdentifier
 D3DADAPTER_IDENTIFIER.

typedef D3DCAPS9 D3DCapacity
 D3DCAPS.

typedef D3DSURFACE_DESC D3DSurfaceDescription
 D3DSURFACE_DESC.

typedef D3DVIEWPORT9 D3DViewport
 D3DVIEWPORT9.

typedef D3DLIGHT9 D3DLight
 D3DLIGHT9.

typedef D3DMATERIAL9 D3DMaterial
 D3DMATERIAL9.

typedef D3DVERTEXELEMENT9 D3DVertexElement
 D3DVERTEXELEMENT9.


Detailed Description

DirectX定義ヘッダ.

Author:
Junpee

Definition in file DirectXDefinition.h.


Define Documentation

#define DirectXAssert expression   ) 
 

Value:

if(DirectXFailed(expression)){\
        DebugOut("DirectXAssert %s %d\n", __FILE__, __LINE__);\
        _asm{ int 3 }\
    }
DirectXのアサート.

リリース時には実行されません

Parameters:
expression 失敗だとアサートが発生します

Definition at line 78 of file DirectXDefinition.h.

#define DirectXAssertMessage expression,
message   ) 
 

Value:

if(DirectXFailed(expression)){\
        DebugOut("DirectXAssert %s\n%s %d\n", message, __FILE__, __LINE__);\
        _asm{ int 3 }\
    }
DirectXのメッセージ付アサート.

リリース時には実行されません

Parameters:
expression 失敗だとアサートが発生します
message アサート時に出力するメッセージ

Definition at line 91 of file DirectXDefinition.h.

#define DirectXCheck expression   )     DirectXAssert(expression)
 

DirectXのチェック.

リリース時にチェックは実行されませんが、引数の構文は実行されます

Parameters:
expression 失敗だとアサートが発生します

Definition at line 103 of file DirectXDefinition.h.

Referenced by Lamp::RenderingDevice::applyStateBlock(), Lamp::RenderingDevice::beginStateBlock(), Lamp::RenderingDevice::closeLight(), Lamp::RenderingDevice::createDynamicIndexBuffer(), Lamp::RenderingDevice::createDynamicVertexBuffer(), Lamp::RenderingDevice::createStaticIndexBuffer(), Lamp::RenderingDevice::createStaticVertexBuffer(), Lamp::RenderingDevice::createTexture(), Lamp::RenderingDevice::createVertexDeclaration(), Lamp::RenderingDevice::drawIndexedLineList(), Lamp::RenderingDevice::drawIndexedTriangleList(), Lamp::RenderingDevice::drawLineList(), Lamp::RenderingDevice::drawTriangleList(), Lamp::RenderingDevice::enableDirectionalLight(), Lamp::RenderingDevice::enablePointLight(), Lamp::RenderingDevice::endScene(), Lamp::RenderingDevice::endStateBlock(), Lamp::RenderingDevice::getRenderTargetSize(), Lamp::RenderingDevice::lockDynamicVertexBuffer(), Lamp::RenderingDevice::lockStaticIndexBuffer(), Lamp::RenderingDevice::lockTexture(), Lamp::RenderingDevice::restoreDefaultStateBlock(), Lamp::RenderingDevice::setIndexBuffer(), Lamp::RenderingDevice::setMaterial(), Lamp::RenderingDevice::setProjectionMatrix(), Lamp::RenderingDevice::setRenderState(), Lamp::RenderingDevice::setSamplerState(), Lamp::RenderingDevice::setTexture(), Lamp::RenderingDevice::setTextureState(), Lamp::RenderingDevice::setTextureTransform2(), Lamp::RenderingDevice::setVertexBuffer(), Lamp::RenderingDevice::setVertexDeclaration(), Lamp::RenderingDevice::setViewMatrix(), Lamp::RenderingDevice::setViewport(), Lamp::RenderingDevice::setWorldMatrix(), Lamp::RenderingDevice::unlockDynamicVertexBuffer(), Lamp::RenderingDevice::unlockStaticIndexBuffer(), Lamp::RenderingDevice::unlockTexture(), Lamp::RenderingDevice::writeDynamicIndexBuffer(), and Lamp::RenderingDevice::writeStaticVertexBuffer().

#define DirectXCheckMessage expression,
message   )     DirectXAssertMessage(expression, message)
 

DirectXのメッセージ付チェック.

リリース時にチェックは実行されませんが、引数の構文は実行されます

Parameters:
expression 失敗だとアサートが発生します
message アサート時に出力するメッセージ

Definition at line 112 of file DirectXDefinition.h.

#define DirectXFailed dxStatus   )     ((dxStatus) < 0)
 

DirectXの失敗.

リリース時にも実行されます

Parameters:
dxStatus DirectXのステータス。失敗していればtrueを返す

Definition at line 67 of file DirectXDefinition.h.

Referenced by Lamp::SoundListener::apply3DSettings(), Lamp::RenderingDevice::beginScene(), Lamp::GraphicsDeviceComboInformation::buildMultiSampleConflict(), Lamp::JoystickDevice::checkJoystickObject(), Lamp::GraphicsDeviceInformation::enumerate(), Lamp::SoundBuffer::getBufferFrequency(), Lamp::SoundBuffer::getCursor(), Lamp::SoundBuffer::getState(), Lamp::StreamPlayer::initialize(), Lamp::MouseDevice::initialize(), Lamp::LampSound::initialize(), Lamp::LampInput::initialize(), Lamp::KeyboardDevice::initialize(), Lamp::JoystickDevice::initialize(), Lamp::InputDevice::initialize(), Lamp::BasicFramework::initializeGraphicsDeviceObjects(), Lamp::LampInput::joystickEnumeration(), Lamp::SoundBuffer::lock(), Lamp::SoundBuffer::playBuffer(), Lamp::GraphicsDevice::presentation(), Lamp::SoundCapacity::refresh(), Lamp::BasicFramework::restoreGraphicsDeviceObjects(), Lamp::Sound3D::set3DEnabled(), Lamp::Sound3D::setConeAngle(), Lamp::Sound3D::setConeDirection(), Lamp::Sound3D::setConeOutsideVolume(), Lamp::InputDevice::setCooperativeLevel(), Lamp::SoundBuffer::setCursor(), Lamp::SoundListener::setDirection(), Lamp::SoundListener::setDistanceFactor(), Lamp::SoundListener::setDopplerFactor(), Lamp::SoundBuffer::setFrequency(), Lamp::Sound3D::setMaximumDistance(), Lamp::Sound3D::setMinimumDistance(), Lamp::SoundBuffer::setOriginalFrequency(), Lamp::StereoSound::setPan(), Lamp::SoundListener::setPosition(), Lamp::Sound3D::setPosition(), Lamp::SoundListener::setRolloffFactor(), Lamp::SoundListener::setVelocity(), Lamp::Sound3D::setVelocity(), Lamp::SoundBuffer::setVolume(), Lamp::Sound3D::Sound3D(), Lamp::SoundBuffer::SoundBuffer(), Lamp::StereoSound::StereoSound(), Lamp::SoundBuffer::stopBuffer(), and Lamp::SoundBuffer::unlock().

#define DirectXSucceeded dxStatus   )     ((dxStatus) >= 0)
 

DirectXの成功.

リリース時にも実行されます

Parameters:
dxStatus DirectXのステータス。成功していればtrueを返す

Definition at line 59 of file DirectXDefinition.h.

Referenced by Lamp::InputDevice::acquire(), Lamp::GraphicsDeviceComboInformation::buildDepthStencilFormats(), Lamp::GraphicsDeviceComboInformation::buildMultiSampleType(), Lamp::GraphicsDevice::initialize(), Lamp::SoundBuffer::lock(), Lamp::SoundBuffer::playBuffer(), Lamp::MouseDevice::polling(), Lamp::KeyboardDevice::polling(), and Lamp::JoystickDevice::polling().


Generated on Wed Mar 16 10:29:39 2005 for Lamp by doxygen 1.3.2