#pragma once #include "common.h" #define RENDER_NONE 0 #define RENDER_LIGHT 1 #define RENDER_FILL 2 #define RENDER_DEPTH 4 #define RENDER_BLEND 8 #define RENDER_TEXTURE 16 namespace Renderer { typedef unsigned char State; bool Light(const char state = QUERY); bool Fill(const char state = QUERY); bool Depth(const char state = QUERY); bool Blend(const char state = QUERY); bool Texture(const char state = QUERY); void Push(); void Pop(); void SetState(const State& state); State GetState(); }