28#ifndef __RenderSystemCapabilitiesSerializer_H__
29#define __RenderSystemCapabilitiesSerializer_H__
132 logParseError(
"Can't find the type for keyword: " + keyword);
void initialiaseDispatchTables()
SetIntMethodDispatchTable mSetIntMethodDispatchTable
map< String, SetStringMethod >::type SetStringMethodDispatchTable
void callSetRealMethod(String &keyword, Real val)
SetStringMethodDispatchTable mSetStringMethodDispatchTable
void writeScript(const RenderSystemCapabilities *caps, String name, String filename)
Writes a RenderSystemCapabilities object to a data stream.
void addSetRealMethod(String keyword, SetRealMethod method)
void(RenderSystemCapabilities::* SetBoolMethod)(bool)
void(RenderSystemCapabilities::* SetIntMethod)(ushort)
map< String, Capabilities >::type CapabilitiesMap
void callSetIntMethod(String &keyword, ushort val)
void parseScript(DataStreamPtr &stream)
Parses a RenderSystemCapabilities script file passed as a stream.
void addCapabilitiesMapping(String name, Capabilities cap)
void addShaderProfile(String &val)
map< String, SetRealMethod >::type SetRealMethodDispatchTable
SetBoolMethodDispatchTable mSetBoolMethodDispatchTable
void logParseError(const String &error) const
String writeString(const RenderSystemCapabilities *caps, String name)
Writes a RenderSystemCapabilities object to a string.
void addSetBoolMethod(String keyword, SetBoolMethod method)
CapabilitiesMap mCapabilitiesMap
@ ADD_SHADER_PROFILE_STRING
@ SET_CAPABILITY_ENUM_BOOL
@ UNDEFINED_CAPABILITY_TYPE
void parseCapabilitiesLines(CapabilitiesLinesList &linesList)
virtual ~RenderSystemCapabilitiesSerializer()
default destructor
map< String, SetIntMethod >::type SetIntMethodDispatchTable
CapabilityKeywordType getKeywordType(const String &keyword) const
void addSetIntMethod(String keyword, SetIntMethod method)
void callSetStringMethod(String &keyword, String &val)
void(RenderSystemCapabilities::* SetRealMethod)(Real)
void setCapabilityEnumBool(String &name, bool val)
vector< std::pair< String, int > >::type CapabilitiesLinesList
map< String, SetBoolMethod >::type SetBoolMethodDispatchTable
RenderSystemCapabilitiesSerializer()
default constructor
map< String, CapabilityKeywordType >::type KeywordTypeMap
RenderSystemCapabilities * mCurrentCapabilities
KeywordTypeMap mKeywordTypeMap
void callSetBoolMethod(String &keyword, bool val)
void addKeywordType(String keyword, CapabilityKeywordType type)
void addSetStringMethod(String keyword, SetStringMethod method)
SetRealMethodDispatchTable mSetRealMethodDispatchTable
DataStreamPtr mCurrentStream
void(RenderSystemCapabilities::* SetStringMethod)(const String &)
singleton class for storing the capabilities of the graphics card.
Capabilities
Enum describing the different hardware capabilities we want to check for OGRE_CAPS_VALUE(a,...
SharedPtr< DataStream > DataStreamPtr
Shared pointer to allow data streams to be passed around without worrying about deallocation.
RenderSysAllocatedObject RenderSysAlloc
float Real
Software floating point type.
std::map< K, V, P, A > type