34#include "scriptarray/scriptarray.h"
36#include <OgreRenderOperation.h>
38#include <Overlay/OgreOverlaySystem.h>
39#include <Overlay/OgreOverlayManager.h>
40#include <Overlay/OgreOverlay.h>
41#include <Overlay/OgreOverlayContainer.h>
46using namespace AngelScript;
57 new(self) Vector3(other);
62 new(self) Vector3(
x,
y,
z);
67 new(self) Vector3(s, s, s);
78 new(self) Vector2(other);
83 new(self) Vector2(
x,
y);
88 new(self) Vector2(s, s);
100 new(self) Radian(other);
126 new(self) Degree(other);
147 new(self) Quaternion();
152 new(self) Quaternion(other.w, other.x, other.y, other.z);
157 new(self) Quaternion(rfAngle, rkAxis);
162 new(self) Quaternion(
w,
x,
y,
z);
167 new(self) Quaternion(xaxis, yaxis, zaxis);
172 new(self) Quaternion(s, s, s, s);
178 new(self) ColourValue();
183 new(self) ColourValue(r,g,b,a);
188 new(self) ColourValue(other.r, other.g, other.b, other.a);
199 new(self) Box(l, t, r, b);
204 new(self) Box(other);
214 (self)->
operator=(other);
220 new (self) TexturePtr();
225 new (self) TexturePtr(other);
230 (self)->~TexturePtr();
235 (self)->
operator=(other);
240 return !(self)->
operator bool();
246 return self->getName();
251 return (asUINT)self->getWidth();
256 return (asUINT)self->getHeight();
261 return (asUINT)self->getNumMipmaps();
264static HardwarePixelBufferSharedPtr
TexturePtrGetBuffer(TexturePtr
const& self, asUINT face, asUINT mipmap)
266 return self->getBuffer(face, mipmap);
271static TexturePtr
TextureManagerLoad(TextureManager& mgr, std::string
const& file, std::string
const& rg)
273 try {
return mgr.load(file, rg); }
281 new (self) HardwarePixelBufferSharedPtr();
286 new (self) HardwarePixelBufferSharedPtr(other);
291 (self)->~HardwarePixelBufferSharedPtr();
296 (self)->
operator=(other);
303 try {
return self->getCurrentLock(); }
307static const PixelBox&
HardwarePixelBufferPtrLock(HardwarePixelBufferSharedPtr
const& self,
const Box& lockbox, HardwareBuffer::LockOptions opt)
309 try {
return self->lock(lockbox, opt); }
315 try {
return self->getWidth(); }
321 try {
return self->getHeight(); }
327 try { self->blitFromMemory(src, dstBox); }
333 try { self->blitToMemory(srcBox, dst); }
339 try { self->unlock(); }
346 new (self) PixelBox();
351 new (self) PixelBox(other);
361 (self)->
operator=(other);
367 return self.getWidth();
372 return self.getHeight();
377 return self.getDepth();
388 new (self) Image(other);
398 (self)->
operator=(other);
411 new (self) MeshPtr();
416 new (self) MeshPtr(other);
426 (self)->
operator=(other);
431 return !(self)->
operator bool();
437 return self->getName();
442 return self->createSubMesh(name);
447 self->createSubMesh(name);
451static MeshPtr
MeshManagerLoad(MeshManager& mgr, std::string
const& file, std::string
const& rg)
453 try {
return mgr.load(file, rg); }
459 try { mgr.remove(file, rg); }
466 VertexData* vertData = (self->useSharedVertices) ? self->parent->sharedVertexData : self->vertexData;
472 const Ogre::VertexElement* posElem = vertData->vertexDeclaration->findElementBySemantic(Ogre::VES_POSITION);
478 Ogre::HardwareVertexBufferSharedPtr vbuf = vertData->vertexBufferBinding->getBuffer(posElem->getSource());
485 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo, vertData->vertexCount);
486 uint8_t* pStart =
static_cast<uint8_t*
>(vbuf->lock(Ogre::HardwareBuffer::HBL_READ_ONLY));
487 for (
size_t i = 0; i < vertData->vertexCount; i++)
489 uint8_t* pVert = pStart + (i * vertData->vertexDeclaration->getVertexSize(posElem->getSource()));
490 float* pPos =
nullptr;
491 posElem->baseVertexPointerToElement(pVert, &pPos);
492 Vector3 pos(*pPos, *(pPos+1), *(pPos+2));
493 arr->SetValue(i, &pos);
501 VertexData* vertData = (self->useSharedVertices) ? self->parent->sharedVertexData : self->vertexData;
507 const Ogre::VertexElement* texcoordElem = vertData->vertexDeclaration->findElementBySemantic(Ogre::VES_TEXTURE_COORDINATES, (
unsigned short)index);
510 App::GetScriptEngine()->
SLOG(fmt::format(
"SubMesh::__getVertexTexcoords(): TEXCOORD element with index {} not found", index));
513 Ogre::HardwareVertexBufferSharedPtr vbuf = vertData->vertexBufferBinding->getBuffer(texcoordElem->getSource());
520 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo, vertData->vertexCount);
521 uint8_t* pStart =
static_cast<uint8_t*
>(vbuf->lock(Ogre::HardwareBuffer::HBL_READ_ONLY));
522 const size_t vertSize = vertData->vertexDeclaration->getVertexSize(texcoordElem->getSource());
523 ROR_ASSERT(texcoordElem->getType() == Ogre::VET_FLOAT2);
524 for (
size_t i = 0; i < vertData->vertexCount; i++)
526 uint8_t* pVert = pStart + ((i + vertData->vertexStart) * vertSize);
527 float* pTexcoord =
nullptr;
528 texcoordElem->baseVertexPointerToElement(pVert, &pTexcoord);
529 Vector2 texcoord(*pTexcoord, *(pTexcoord+1));
530 arr->SetValue(i, &texcoord);
538 if (!self->indexData)
541 return Ogre::HardwareIndexBuffer::IT_16BIT;
543 Ogre::HardwareIndexBufferSharedPtr ibuf = self->indexData->indexBuffer;
547 return Ogre::HardwareIndexBuffer::IT_16BIT;
549 return ibuf->getType();
554 if (!self->indexData)
559 Ogre::HardwareIndexBufferSharedPtr ibuf = self->indexData->indexBuffer;
565 if (ibuf->getType() != desiredType)
571 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo, self->indexData->indexCount);
572 uint8_t* pStart =
static_cast<uint8_t*
>(ibuf->lock(Ogre::HardwareBuffer::HBL_READ_ONLY));
573 for (
size_t i = self->indexData->indexStart; i < self->indexData->indexCount; i++)
575 uint8_t* pIndex = pStart + (i * ibuf->getIndexSize());
576 if (ibuf->getType() == Ogre::HardwareIndexBuffer::IT_16BIT)
578 uint16_t index = *
reinterpret_cast<uint16_t*
>(pIndex);
579 arr->SetValue(i, &index);
581 else if (ibuf->getType() == Ogre::HardwareIndexBuffer::IT_32BIT)
583 uint32_t index = *
reinterpret_cast<uint32_t*
>(pIndex);
584 arr->SetValue(i, &index);
598 const Ogre::HardwareIndexBuffer::IndexType desiredType = Ogre::HardwareIndexBuffer::IndexType::IT_16BIT;
600 else {
App::GetScriptEngine()->
SLOG(
"SubMesh::__getIndexBuffer16bit(): The buffer format isn't 16bit.");
return (CScriptArray*)
nullptr; }
605 const Ogre::HardwareIndexBuffer::IndexType desiredType = Ogre::HardwareIndexBuffer::IndexType::IT_32BIT;
607 else {
App::GetScriptEngine()->
SLOG(
"SubMesh::__getIndexBuffer32bit(): The buffer format isn't 32bit.");
return (CScriptArray*)
nullptr; }
621 return fmt::format(
"\"{}\" ({})", self->getName(),
static_cast<void*
>(self));
627 self->setOrientation(q);
642 return fmt::format(
"\"{}\" ({} {})", self->getName(), self->getMovableType(),
static_cast<void*
>(self));
671 new (self) MaterialPtr();
676 new (self) MaterialPtr(other);
681 (self)->~MaterialPtr();
686 (self)->
operator=(other);
691 return !(self)->
operator bool();
697 return self->getName();
702 try {
return self->createTechnique(); }
708 try { self->removeTechnique(index); }
715 try {
return mgr.getByName(file, rg); }
721 try {
return mgr.create(file, rg); }
743 try {
return self->getVertexProgramParameters(); }
749 try {
return self->getFragmentProgramParameters(); }
755 try {
return self->getGeometryProgramParameters(); }
761 try {
return self->getTessellationHullProgramParameters(); }
767 try {
return self->getTessellationDomainProgramParameters(); }
773 try {
return self->getComputeProgramParameters(); }
798 new(self) Timer(other);
803 (self)->
operator=(other);
809 new (self) GpuProgramParametersPtr();
814 new (self) GpuProgramParametersPtr(other);
819 (self)->~GpuProgramParametersPtr();
824 (self)->
operator=(other);
829 return !(self)->
operator bool();
837 try { self->setConstant(index, val); }
843 try { self->setConstant(index, val); }
849 try { self->setConstant(index, val); }
855 try { self->setConstant(index, val); }
863 try { self->setConstant(index, (
float*)vals->GetBuffer(), vals->GetSize()); }
870 try { self->setConstant(index, (
float*)vals->GetBuffer(), vals->GetSize()*3); }
877 try { self->setConstant(index, (
float*)vals->GetBuffer(), vals->GetSize()*2); }
884 try { self->setConstant(index, (
float*)vals->GetBuffer(), vals->GetSize()*4); }
891 try { self->setNamedConstant(name, val); }
897 try { self->setNamedConstant(name, val); }
903 try { self->setNamedConstant(name, val); }
909 try { self->setNamedConstant(name, val); }
917 try { self->setNamedConstant(name, (
float*)vals->GetBuffer(), vals->GetSize()); }
924 try { self->setNamedConstant(name, (
float*)vals->GetBuffer(), vals->GetSize()*3); }
931 try { self->setNamedConstant(name, (
float*)vals->GetBuffer(), vals->GetSize()*2); }
938 try { self->setNamedConstant(name, (
float*)vals->GetBuffer(), vals->GetSize()*4); }
945 std::vector<std::string> keys;
946 const Ogre::GpuNamedConstants& namedConstants = self->getConstantDefinitions();
947 for (
auto& pair : namedConstants.map)
948 keys.push_back(pair.first);
969 SceneManager::MovableObjectIterator it = self->getMovableObjectIterator(typeName);
979 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo);
982 while (it.hasMoreElements())
984 Ogre::MovableObject* obj = it.getNext();
987 arr->InsertLast(&obj);
1000static Ogre::Entity*
SceneManagerCreateEntity(Ogre::SceneManager* self,
const std::string& entityName,
const std::string& meshName,
const std::string& meshRG)
1002 try {
return self->createEntity(entityName, meshName, meshRG); }
1009 try { self->add2D(
dynamic_cast<Ogre::OverlayContainer*
>(elem)); }
1015 try { self->remove2D(
dynamic_cast<Ogre::OverlayContainer*
>(elem)); }
1022 const Ogre::Overlay::OverlayContainerList& ocList = self->get2DElements();
1024 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo);
1025 for (OverlayContainer* oc: ocList)
1027 OverlayElement* elem =
static_cast<Ogre::OverlayElement*
>(oc);
1028 arr->InsertLast(&elem);
1039 auto iterable = self->getTemplateIterator();
1042 AngelScript::CScriptArray* arr = AngelScript::CScriptArray::Create(typeinfo);
1043 for (
auto& elem_pair: iterable) {
1044 OverlayElement* elem =
static_cast<Ogre::OverlayElement*
>(elem_pair.second);
1045 arr->InsertLast(&elem);
1053 try {
return self->create(name);}
1059 try {
return self->getByName(name);}
1065 try {
return self->destroy(name);}
1071 try {
return self->destroy(ov);}
1077 try {
return self->destroyAll();}
1084 try {
auto iterable = self->getOverlayIterator();
1091 try {
return dynamic_cast<Ogre::OverlayElement*
>(self->createOverlayElement(type,name,isTemplate));}
1097 try {
return dynamic_cast<Ogre::OverlayElement*
>(self->getOverlayElement(name));}
1103 try { self->destroyOverlayElement(name, isTemplate);}
1109 try { self->destroyOverlayElement(oe, isTemplate);}
1115 try { self->destroyAllOverlayElements(isTemplate);}
1121 try {
return dynamic_cast<Ogre::OverlayElement*
>(self->createOverlayElementFromTemplate(templateName, typeName, instanceName, isTemplate));}
1127 try {
return dynamic_cast<Ogre::OverlayElement*
>(self->cloneOverlayElementFromTemplate(templateName, instanceName));}
1133 try {
return self->isTemplate(name);}
Central state/object manager and communications hub.
#define ROR_ASSERT(_EXPR)
void forwardExceptionAsScriptEvent(const std::string &from)
Forwards useful info from C++ try{}catch{} exceptions to script in the form of game event.
void SLOG(const char *msg)
Replacement of macro.
AngelScript::asIScriptEngine * getEngine()
AngelScript::CScriptArray * VectorToScriptArray(const std::vector< T > &vec, const std::string &decl)
AngelScript::CScriptArray * IterableMapToScriptArray(ItorT begin, ItorT end, const std::string &decl)
static void GpuProgramParametersPtrCopyConstructor(const GpuProgramParametersPtr &other, GpuProgramParametersPtr *self)
static TechniqueArray * MaterialPtrGetTechniques(const MaterialPtr &self)
static Ogre::uint32 TexturePtrGetWidth(TexturePtr const &self)
static Ogre::OverlayElement * OverlayManagerCloneOverlayElementFromTemplate(Ogre::OverlayManager *self, const std::string &templateName, const std::string &instanceName)
static void GpuProgramParametersPtrSetConstantFloat(GpuProgramParametersPtr const &self, asUINT index, float val)
static AnimationStateDict * AnimationStateSetGetAnimationStates(AnimationStateSet *self)
static void MeshPtrDefaultConstructor(MeshPtr *self)
static void GpuProgramParametersPtrSetConstantColourValueArray(GpuProgramParametersPtr const &self, asUINT index, CScriptArray *vals)
static Ogre::Technique * MaterialPtrCreateTechnique(MaterialPtr const &self)
static void MaterialPtrAssignOperator(const MaterialPtr &other, MaterialPtr *self)
static void GpuProgramParametersPtrSetConstantVector2Array(GpuProgramParametersPtr const &self, asUINT index, CScriptArray *vals)
static asUINT PixelBoxGetWidth(const Ogre::PixelBox &self)
static void MaterialPtrDestructor(MaterialPtr *self)
static void GpuProgramParametersPtrSetNamedConstantVector3(GpuProgramParametersPtr const &self, const std::string &name, const Ogre::Vector3 &val)
static Ogre::GpuProgramParametersPtr PassGetComputeProgramParameters(Ogre::Pass *self)
static void ImageCopyConstructor(const Image &other, Image *self)
static HardwarePixelBufferSharedPtr TexturePtrGetBuffer(TexturePtr const &self, asUINT face, asUINT mipmap)
static AngelScript::CScriptArray * SubMesh__getVertexTexcoords(SubMesh *self, asUINT index)
static bool OverlayManagerIsTemplate(Ogre::OverlayManager *self, const std::string &name)
static void MeshPtrAssignOperator(const MeshPtr &other, MeshPtr *self)
static void ImageDefaultConstructor(Image *self)
static void MeshPtrCopyConstructor(const MeshPtr &other, MeshPtr *self)
static bool MeshPtrIsNull(MeshPtr *self)
static ChildNodeArray * NodeGetChildren(Ogre::Node *self)
CReadonlyScriptDictView< SceneManager * > SceneManagerInstanceDict
static void BoxDestructor(Box *self)
CReadonlyScriptArrayView< Ogre::TextureUnitState * > TextureUnitStateArray
static void Vector2DefaultConstructor(Vector2 *self)
static Ogre::GpuProgramParametersPtr PassGetGeometryProgramParameters(Ogre::Pass *self)
static asUINT HardwarePixelBufferPtrGetWidth(HardwarePixelBufferSharedPtr const &self)
static SubEntityArray * EntityGetSubEntities(Entity *self)
static void HardwarePixelBufferPtrBlitFromMemory(HardwarePixelBufferSharedPtr const &self, const PixelBox &src, const Box &dstBox)
static void PixelBoxCopyConstructor(const PixelBox &other, PixelBox *self)
static void OverlayAdd2D(Ogre::Overlay *self, Ogre::OverlayElement *elem)
static CScriptArray * SubMesh__getIndexBuffer16bit(Ogre::SubMesh *self)
static Ogre::GpuProgramParametersPtr PassGetTessellationDomainProgramParameters(Ogre::Pass *self)
static void BoxCopyConstructor(const Box &other, Box *self)
CReadonlyScriptArrayView< Ogre::Technique * > TechniqueArray
static void RadianInitConstructor(float r, Radian *self)
static void ImageDestructor(PixelBox *self)
static Ogre::uint32 TexturePtrGetHeight(TexturePtr const &self)
static std::string MovableObjectGetUniqueNameMixin(Ogre::MovableObject *self)
static Ogre::OverlayElement * OverlayManagerCreateOverlayElementFromTemplate(Ogre::OverlayManager *self, const std::string &templateName, const std::string &typeName, const std::string &instanceName, bool isTemplate)
static const PixelBox & HardwarePixelBufferPtrLock(HardwarePixelBufferSharedPtr const &self, const Box &lockbox, HardwareBuffer::LockOptions opt)
static void TimerDefaultConstructor(Timer *self)
static void PixelBoxDestructor(PixelBox *self)
static MovableObjectArray * SceneNodeGetAttachedObjects(SceneNode *self)
static PassArray * TechniqueGetPasses(Technique *self)
static void TexturePtrAssignOperator(const TexturePtr &other, TexturePtr *self)
static void MaterialPtrDefaultConstructor(MaterialPtr *self)
static void MeshPtrDestructor(MeshPtr *self)
static MaterialPtr MaterialManagerCreate(MaterialManager &mgr, std::string const &file, std::string const &rg)
static void GpuProgramParametersPtrSetNamedConstantColourValueArray(GpuProgramParametersPtr const &self, const std::string &name, CScriptArray *vals)
static void GpuProgramParametersPtrSetNamedConstantVector2Array(GpuProgramParametersPtr const &self, const std::string &name, CScriptArray *vals)
CReadonlyScriptArrayView< Ogre::MovableObject * > MovableObjectArray
static int RadianCmp(const Radian &a, const Radian &b)
static void DegreeDefaultConstructor(Degree *self)
CReadonlyScriptArrayView< Ogre::Node * > ChildNodeArray
static void GpuProgramParametersPtrSetConstantVector3(GpuProgramParametersPtr const &self, asUINT index, const Ogre::Vector3 &val)
static void GpuProgramParametersPtrDestructor(GpuProgramParametersPtr *self)
static Ogre::String TexturePtrGetName(TexturePtr const &self)
static AngelScript::CScriptArray * SceneManager__getMovableObjectsByType(SceneManager *self, const std::string &typeName)
static Ogre::String MaterialPtrGetName(MaterialPtr const &self)
static void GpuProgramParametersPtrSetConstantVector2(GpuProgramParametersPtr const &self, asUINT index, const Ogre::Vector2 &val)
static void Vector3InitConstructorScaler(float s, Vector3 *self)
static void Vector2CopyConstructor(const Vector2 &other, Vector2 *self)
static void MeshManagerRemove(MeshManager &mgr, std::string const &file, std::string const &rg)
static void Vector3CopyConstructor(const Vector3 &other, Vector3 *self)
static void OverlayManagerDestroy(Ogre::OverlayManager *self, Ogre::Overlay *ov)
static void GpuProgramParametersPtrSetNamedConstantColourValue(GpuProgramParametersPtr const &self, const std::string &name, const Ogre::ColourValue &val)
static void PixelBoxDefaultConstructor(PixelBox *self)
static void ColourValueDefaultConstructor(ColourValue *self)
static void RadianCopyConstructor(const Radian &other, Radian *self)
static void GpuProgramParametersPtrSetConstantVector3Array(GpuProgramParametersPtr const &self, asUINT index, CScriptArray *vals)
static void ColourValueCopyConstructor(const ColourValue &other, ColourValue *self)
static void TexturePtrDefaultConstructor(TexturePtr *self)
static SceneManagerInstanceDict * RootGetSceneManagers(Root *self)
static void Vector2InitConstructorScaler(float s, Vector2 *self)
static Ogre::GpuProgramParametersPtr PassGetFragmentProgramParameters(Ogre::Pass *self)
CReadonlyScriptArrayView< Ogre::SubEntity * > SubEntityArray
static CScriptArray * OverlayManagerGetOverlays(Ogre::OverlayManager *self)
static void QuaternionInitConstructor1(const Radian &rfAngle, const Vector3 &rkAxis, Quaternion *self)
CReadonlyScriptDictView< AnimationState * > AnimationStateDict
static CScriptArray * SubMesh__getIndexBuffer32bit(Ogre::SubMesh *self)
static PixelBox PIXELBOX_DUMMY
static void GpuProgramParametersPtrSetNamedConstantFloat(GpuProgramParametersPtr const &self, const std::string &name, float val)
static TextureUnitStateArray * PassGetTextureUnitStates(Pass *self)
static asUINT HardwarePixelBufferPtrGetHeight(HardwarePixelBufferSharedPtr const &self)
CReadonlyScriptArrayView< Ogre::SubMesh * > SubMeshArray
static void ImageAssignOperator(const PixelBox &other, PixelBox *self)
static Ogre::Entity * SceneManagerCreateEntity(Ogre::SceneManager *self, const std::string &entityName, const std::string &meshName, const std::string &meshRG)
static void QuaternionDefaultConstructor(Quaternion *self)
static std::string NodeGetUniqueNameMixin(Ogre::Node *self)
static bool GpuProgramParametersPtrIsNull(GpuProgramParametersPtr *self)
static void GpuProgramParametersPtrSetConstantColourValue(GpuProgramParametersPtr const &self, asUINT index, const Ogre::ColourValue &val)
static void HardwarePixelBufferPtrCopyConstructor(const HardwarePixelBufferSharedPtr &other, HardwarePixelBufferSharedPtr *self)
static void OverlayManagerDestroyAllOverlayElements(Ogre::OverlayManager *self, bool isTemplate)
static void BoxAssignOperator(const Box &other, Box *self)
static void TimerAssignOperator(const Timer &other, Timer *self)
static bool MaterialPtrIsNull(MaterialPtr *self)
static bool TexturePtrIsNull(TexturePtr *self)
static Ogre::uint32 TexturePtrGetNumMipmaps(TexturePtr const &self)
static TexturePtr TextureManagerLoad(TextureManager &mgr, std::string const &file, std::string const &rg)
static void HardwarePixelBufferPtrUnlock(HardwarePixelBufferSharedPtr const &self)
static void TimerDefaultDestructor(Timer *self)
static void OverlayManagerDestroyAll(Ogre::OverlayManager *self)
static void QuaternionInitConstructor3(const Vector3 &xaxis, const Vector3 &yaxis, const Vector3 &zaxis, Quaternion *self)
static void BoxInitConstructor(asUINT l, asUINT t, asUINT r, asUINT b, Box *self)
static void PixelBoxAssignOperator(const PixelBox &other, PixelBox *self)
static void OverlayManagerDestroyOverlayElementByName(Ogre::OverlayManager *self, const std::string &name, bool isTemplate)
static void GpuProgramParametersPtrSetNamedConstantFloatArray(GpuProgramParametersPtr const &self, const std::string &name, CScriptArray *vals)
static AngelScript::CScriptArray * getElementTemplatesHelper(Ogre::OverlayManager *self)
static Ogre::GpuProgramParametersPtr PassGetTessellationHullProgramParameters(Ogre::Pass *self)
static void DegreeInitConstructor(float r, Degree *self)
static Ogre::SubMesh * MeshPtrCreateSubMesh(MeshPtr const &self, const Ogre::String &name)
static void TimerCopyConstructor(const Timer &other, Timer *self)
static void Vector3InitConstructor(float x, float y, float z, Vector3 *self)
static void RadianDefaultConstructor(Radian *self)
static SubMeshArray * MeshPtrGetSubmeshes(const MeshPtr &self)
static Ogre::HardwareIndexBuffer::IndexType SubMesh__getIndexType(SubMesh *self)
static asUINT PixelBoxGetDepth(const Ogre::PixelBox &self)
static void MaterialPtrRemoveTechnique(MaterialPtr const &self, uint16_t index)
static void Vector2InitConstructor(float x, float y, Vector2 *self)
static void HardwarePixelBufferPtrDestructor(HardwarePixelBufferSharedPtr *self)
CReadonlyScriptArrayView< Ogre::Pass * > PassArray
static void HardwarePixelBufferPtrBlitToMemory(HardwarePixelBufferSharedPtr const &self, const Box &srcBox, const PixelBox &dst)
static void Vector3DefaultConstructor(Vector3 *self)
static void ColourValueInitConstructor(float r, float g, float b, float a, ColourValue *self)
static void GpuProgramParametersPtrSetConstantFloatArray(GpuProgramParametersPtr const &self, asUINT index, CScriptArray *vals)
static void HardwarePixelBufferPtrAssignOperator(const HardwarePixelBufferSharedPtr &other, HardwarePixelBufferSharedPtr *self)
static void QuaternionInitConstructor2(float w, float x, float y, float z, Quaternion *self)
static void GpuProgramParametersPtrSetNamedConstantVector3Array(GpuProgramParametersPtr const &self, const std::string &name, CScriptArray *vals)
static MaterialPtr MaterialManagerGetByName(MaterialManager &mgr, std::string const &file, std::string const &rg)
static void BoxDefaultConstructor(Box *self)
static Ogre::OverlayElement * OverlayManagerGetOverlayElement(Ogre::OverlayManager *self, const std::string &name)
static asUINT PixelBoxGetHeight(const Ogre::PixelBox &self)
static AngelScript::CScriptArray * SubMesh__getVertexPositions(SubMesh *self)
static Ogre::String MeshPtrGetName(MeshPtr const &self)
static void HardwarePixelBufferPtrDefaultConstructor(HardwarePixelBufferSharedPtr *self)
static void MaterialPtrCopyConstructor(const MaterialPtr &other, MaterialPtr *self)
static Ogre::GpuProgramParametersPtr PassGetVertexProgramParameters(Ogre::Pass *self)
static Ogre::OverlayElement * OverlayManagerCreateOverlayElement(Ogre::OverlayManager *self, const std::string &type, const std::string &name, bool isTemplate)
static MeshPtr MeshManagerLoad(MeshManager &mgr, std::string const &file, std::string const &rg)
static void OverlayManagerDestroyOverlayElement(Ogre::OverlayManager *self, Ogre::OverlayElement *oe, bool isTemplate)
static AngelScript::CScriptArray * SubMesh__getIndexBufferHelper(Ogre::SubMesh *self, Ogre::HardwareIndexBuffer::IndexType desiredType)
static void GpuProgramParametersPtrDefaultConstructor(GpuProgramParametersPtr *self)
static Ogre::Overlay * OverlayManagerCreate(Ogre::OverlayManager *self, const std::string &name)
static void TexturePtrDestructor(TexturePtr *self)
static void QuaternionCopyConstructor(const Quaternion &other, Quaternion *self)
static void MeshPtrDestroySubMesh(MeshPtr const &self, const Ogre::String &name)
static void OverlayManagerDestroyByName(Ogre::OverlayManager *self, const std::string &name)
static Ogre::Overlay * OverlayManagerGetByName(Ogre::OverlayManager *self, const std::string &name)
static const PixelBox & HardwarePixelBufferPtrGetCurrentLock(HardwarePixelBufferSharedPtr const &self)
static void NodeSetOrientation(T *self, const Ogre::Quaternion &q)
static int DegreeCmp(const Degree &a, const Degree &b)
static CScriptArray * GpuProgramParametersPtr__getNamedConstants(GpuProgramParametersPtr const &self)
static void DegreeCopyConstructor(const Degree &other, Degree *self)
static void TexturePtrCopyConstructor(const TexturePtr &other, TexturePtr *self)
static AngelScript::CScriptArray * get2DElementsHelper(Ogre::Overlay *self)
static void QuaternionInitConstructorScaler(float s, Quaternion *self)
static void GpuProgramParametersPtrSetNamedConstantVector2(GpuProgramParametersPtr const &self, const std::string &name, const Ogre::Vector2 &val)
static void GpuProgramParametersPtrAssignOperator(const GpuProgramParametersPtr &other, GpuProgramParametersPtr *self)
static void OverlayRemove2D(Ogre::Overlay *self, Ogre::OverlayElement *elem)
ScriptEngine * GetScriptEngine()