Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
VLX wrapper of vl::Shader. More...
#include <VLXWrappers.hpp>
Public Member Functions | |
void | importShader (VLXSerializer &s, const VLXStructure *vlx, Shader *sh) |
virtual ref< Object > | importVLX (VLXSerializer &s, const VLXStructure *vlx) |
void | exportShader (VLXSerializer &s, const Shader *obj, VLXStructure *vlx) |
virtual ref< VLXStructure > | exportVLX (VLXSerializer &s, const Object *obj) |
VLX wrapper of vl::Shader.
Definition at line 1653 of file VLXWrappers.hpp.
void vl::VLXClassWrapper_Shader::importShader | ( | VLXSerializer & | s, |
const VLXStructure * | vlx, | ||
Shader * | sh | ||
) | [inline] |
Definition at line 1655 of file VLXWrappers.hpp.
References vl::EN_UnknownEnable, vl::Shader::enable(), vl::VLXValue::getList(), vl::VLXValue::getString(), vl::VLXStructure::getValue(), vl::VLXValue::Identifier, vl::VLXSerializer::importVLX(), vl::VLXValue::Integer, vl::VLXValue::List, NULL, vl::Object::setObjectName(), vl::Shader::setRenderState(), vl::Shader::setUniform(), vl::VLXValue::Structure, vl::VLXValue::type(), vl::vlx_EEnable(), and VLX_IMPORT_CHECK_RETURN.
Referenced by importVLX().
virtual ref<Object> vl::VLXClassWrapper_Shader::importVLX | ( | VLXSerializer & | s, |
const VLXStructure * | vlx | ||
) | [inline, virtual] |
Implements vl::VLXClassWrapper.
Definition at line 1719 of file VLXWrappers.hpp.
References vl::ref< T >::get(), importShader(), and vl::VLXSerializer::registerImportedStructure().
void vl::VLXClassWrapper_Shader::exportShader | ( | VLXSerializer & | s, |
const Shader * | obj, | ||
VLXStructure * | vlx | ||
) | [inline] |
Definition at line 1728 of file VLXWrappers.hpp.
References vl::VLXSerializer::canExport(), vl::Log::debug(), vl::EnableSet::enables(), vl::VLXSerializer::exportVLX(), vl::ref< T >::get(), vl::Shader::getEnableSet(), vl::VLXValue::getList(), vl::Shader::getRenderStateSet(), vl::Shader::getUniformSet(), vl::RenderStateSlot::mIndex, vl::RenderStateSlot::mRS, vl::Object::objectName(), vl::RenderStateSet::renderStates(), vl::RenderStateSet::renderStatesCount(), vl::VLXValue::setList(), vl::Shader::uniforms(), vl::vlx_EEnable(), vl::vlx_Identifier(), and vl::vlx_String().
Referenced by exportVLX().
virtual ref<VLXStructure> vl::VLXClassWrapper_Shader::exportVLX | ( | VLXSerializer & | s, |
const Object * | obj | ||
) | [inline, virtual] |
Implements vl::VLXClassWrapper.
Definition at line 1774 of file VLXWrappers.hpp.
References vl::Object::as(), exportShader(), vl::VLXSerializer::generateID(), vl::VLXSerializer::registerExportedObject(), VL_CHECK, and vl::vlx_makeTag().