2 #ifndef __EFFEKSEERRENDERER_DX9_BASE_PRE_H__ 3 #define __EFFEKSEERRENDERER_DX9_BASE_PRE_H__ 14 #pragma comment(lib, "gdiplus.lib") 15 #pragma comment(lib, "d3d9.lib" ) 35 #endif // __EFFEKSEERRENDERER_DX9_PRE_BASE_H__ 37 #ifndef __EFFEKSEERRENDERER_RENDERER_H__ 38 #define __EFFEKSEERRENDERER_RENDERER_H__ 57 class DistortingCallback
129 Impl*
impl =
nullptr;
249 virtual void SetCameraParameter(const ::Effekseer::Vector3D& front, const ::Effekseer::Vector3D& position);
391 virtual void SetTime(
float time);
432 #endif // __EFFEKSEERRENDERER_RENDERER_H__ 434 #ifndef __EFFEKSEERRENDERER_DX9_RENDERER_H__ 435 #define __EFFEKSEERRENDERER_DX9_RENDERER_H__ 482 virtual LPDIRECT3DDEVICE9
GetDevice() = 0;
487 virtual void ChangeDevice( LPDIRECT3DDEVICE9 device ) = 0;
497 virtual void SetBackground(IDirect3DTexture9* background) = 0;
561 #endif // __EFFEKSEERRENDERER_DX9_RENDERER_H__ virtual void ResetDrawCallCount()
Reset draw call count.
virtual void ResetDrawVertexCount()
Reset the number of vertex drawn.
::Effekseer::ModelLoader * CreateModelLoader(LPDIRECT3DDEVICE9 device, ::Effekseer::FileInterface *fileInterface=NULL)
モデル読込クラスを生成する。
InternalModel * InternalModels
virtual void SetCameraMatrix(const ::Effekseer::Matrix44 &mat)
Set a camera matrix.
virtual void SetTime(float time)
Set a current time (s)
#define ES_SAFE_RELEASE(val)
virtual void ChangeDevice(LPDIRECT3DDEVICE9 device)=0
デバイスロストリセット間でデバイス自体を再構築する際に外部からデバイスを設定する。
virtual bool OnDistorting()
virtual ~GraphicsDevice()=default
virtual ::Effekseer::TrackRenderer * CreateTrackRenderer()=0
軌跡レンダラーを生成する。
virtual ~SingleFrameMemoryPool()=default
#define ES_SAFE_DELETE_ARRAY(val)
virtual int32_t GetSquareMaxCount() const =0
最大描画スプライト数を取得する。
IDirect3DIndexBuffer9 * IndexBuffer
virtual float GetTime() const
Get a current time (s)
virtual ::Effekseer::MaterialLoader * CreateMaterialLoader(::Effekseer::FileInterface *fileInterface=nullptr)=0
Create default material loader.
virtual void SetCommandList(CommandList *commandList)
specify a command list to render. This function is available except DirectX9, DirectX11 and OpenGL.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
virtual void SetLightColor(const ::Effekseer::Color &color)
Specify the color of light.
virtual UVStyle GetTextureUVStyle() const
Get an UV Style of texture when particles are rendered.
virtual void SetBackgroundTextureUVStyle(UVStyle style)
Set an UV Style of background when particles are rendered.
virtual void DeleteProxyTexture(Effekseer::TextureData *data)
Delete a proxy texture.
virtual ::Effekseer::RingRenderer * CreateRingRenderer()=0
リングレンダラーを生成する。
virtual ~CommandList()=default
virtual void SetCameraParameter(const ::Effekseer::Vector3D &front, const ::Effekseer::Vector3D &position)
Set a front direction and position of camera manually.
virtual void SetRenderMode(Effekseer::RenderMode renderMode)
Specify a render mode.
virtual bool BeginRendering()=0
描画を開始する時に実行する。
virtual ::Effekseer::Vector3D GetCameraFrontDirection() const
Get a front direction of camera.
virtual void SetLightDirection(const ::Effekseer::Vector3D &direction)
Specifiy the direction of light.
virtual ::Effekseer::SpriteRenderer * CreateSpriteRenderer()=0
スプライトレンダラーを生成する。
virtual void SetProjectionMatrix(const ::Effekseer::Matrix44 &mat)
Set a projection matrix.
virtual Effekseer::RenderMode GetRenderMode() const
Get a render mode.
virtual void NewFrame()
notify that new frame is started.
virtual ::Effekseer::Matrix44 GetCameraProjectionMatrix() const
Get a camera projection matrix.
virtual ::Effekseer::ModelRenderer * CreateModelRenderer()=0
モデルレンダラーを生成する。
virtual int32_t GetDrawCallCount() const
Get draw call count.
IDirect3DVertexBuffer9 * VertexBuffer
virtual LPDIRECT3DDEVICE9 GetDevice()=0
デバイスを取得する。
virtual Effekseer::TextureData * GetBackground()=0
背景を取得する。
virtual void ResetRenderState()=0
レンダーステートを強制的にリセットする。
virtual void SetRestorationOfStatesFlag(bool flag)=0
ステートを復帰するかどうかのフラグを設定する。
virtual void OnLostDevice()=0
デバイスロストが発生した時に実行する。
virtual ::Effekseer::TextureLoader * CreateTextureLoader(::Effekseer::FileInterface *fileInterface=NULL)=0
標準のテクスチャ読込クラスを生成する。
virtual ::Effekseer::Vector3D GetCameraPosition() const
Get a position of camera.
ProxyTextureType
A type of texture which is rendered when textures are not assigned.
Impl * GetImpl()
only for Effekseer backend developer. Effekseer User doesn't need it.
virtual void SetBackgroundTexture(::Effekseer::TextureData *textureData)
Specify a background texture. Specified texture is not deleted by the renderer. This function is avai...
virtual ~Model()
Destructor.
Model(uint8_t *data, int32_t size)
virtual ::Effekseer::ModelLoader * CreateModelLoader(::Effekseer::FileInterface *fileInterface=NULL)=0
標準のモデル読込クラスを生成する。
virtual void SetDistortingCallback(DistortingCallback *callback)=0
背景を歪ませるエフェクトが描画される前に呼ばれるコールバックを設定する。
virtual void Destroy()=0
このインスタンスを破棄する。
virtual void SetBackground(IDirect3DTexture9 *background)=0
背景を設定する。
SingleFrameMemoryPool()=default
virtual ~DistortingCallback()
static Renderer * Create(LPDIRECT3DDEVICE9 device, int32_t squareMaxCount)
インスタンスを生成する。
UVStyle
A status of UV when particles are rendered.
GLuint GLuint GLsizei GLenum type
virtual const ::Effekseer::Color & GetLightColor() const
Get the color of light.
::Effekseer::TextureLoader * CreateTextureLoader(LPDIRECT3DDEVICE9 device, ::Effekseer::FileInterface *fileInterface=NULL)
テクスチャ読込クラスを生成する。
virtual ::Effekseer::Matrix44 GetProjectionMatrix() const
Get a projection matrix.
virtual DistortingCallback * GetDistortingCallback()=0
背景を歪ませるエフェクトが描画される前に呼ばれるコールバックを取得する。
virtual ::Effekseer::Vector3D GetLightDirection() const
Get the direction of light.
virtual UVStyle GetBackgroundTextureUVStyle() const
Get an UV Style of background when particles are rendered.
virtual int32_t GetDrawVertexCount() const
Get the number of vertex drawn.
virtual void SetLightAmbientColor(const ::Effekseer::Color &color)
Specify the color of ambient.
virtual Effekseer::TextureData * CreateProxyTexture(ProxyTextureType type)
Create a proxy texture.
virtual ::Effekseer::Matrix44 GetCameraMatrix() const
Get a camera matrix.
virtual void SetTextureUVStyle(UVStyle style)
Set an UV Style of texture when particles are rendered.
virtual bool EndRendering()=0
描画を終了する時に実行する。
virtual ::Effekseer::RibbonRenderer * CreateRibbonRenderer()=0
リボンレンダラーを生成する。
virtual void OnResetDevice()=0
デバイスがリセットされた時に実行する。
virtual const ::Effekseer::Color & GetLightAmbientColor() const
Get the color of ambient.