mirror of https://github.com/axmolengine/axmol.git
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
|
|
|||
|
#ifndef __EFFEKSEERRENDERER_GL_RENDERSTATE_H__
|
|||
|
#define __EFFEKSEERRENDERER_GL_RENDERSTATE_H__
|
|||
|
|
|||
|
//----------------------------------------------------------------------------------
|
|||
|
// Include
|
|||
|
//----------------------------------------------------------------------------------
|
|||
|
#include "../../EffekseerRendererCommon/EffekseerRenderer.RenderStateBase.h"
|
|||
|
#include "EffekseerRendererGL.Base.h"
|
|||
|
#include "EffekseerRendererGL.Renderer.h"
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
namespace EffekseerRendererGL
|
|||
|
{
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
class RenderState : public ::EffekseerRenderer::RenderStateBase
|
|||
|
{
|
|||
|
private:
|
|||
|
RendererImplemented* m_renderer;
|
|||
|
bool m_isCCW = true;
|
|||
|
|
|||
|
std::array<GLuint, Effekseer::TextureSlotMax> m_samplers;
|
|||
|
|
|||
|
public:
|
|||
|
RenderState(RendererImplemented* renderer);
|
|||
|
virtual ~RenderState();
|
|||
|
|
|||
|
void Update(bool forced);
|
|||
|
};
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
} // namespace EffekseerRendererGL
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------------
|
|||
|
#endif // __EFFEKSEERRENDERER_GL_RENDERSTATE_H__
|