add access levels
This commit is contained in:
parent
6a24f444fa
commit
7ff4b82ea1
|
|
@ -25,4 +25,7 @@ target_link_libraries(Studio PRIVATE Common Engine)
|
||||||
set_target_properties(Studio PROPERTIES
|
set_target_properties(Studio PROPERTIES
|
||||||
WIN32_EXECUTABLE ON
|
WIN32_EXECUTABLE ON
|
||||||
MACOSX_BUNDLE ON
|
MACOSX_BUNDLE ON
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS Studio
|
||||||
|
RUNTIME_DEPENDENCIES)
|
||||||
|
|
@ -7,9 +7,12 @@ namespace RNR
|
||||||
{
|
{
|
||||||
enum ReflectionPropertyAccess
|
enum ReflectionPropertyAccess
|
||||||
{
|
{
|
||||||
ACCESS_SCRIPT,
|
ACCESS_NONE,
|
||||||
ACCESS_CONSOLE,
|
ACCESS_PLUGIN,
|
||||||
ACCESS_RNR,
|
ACCESS_LOCALUSER,
|
||||||
|
ACCESS_WRITEPLAYER,
|
||||||
|
ACCESS_AUTHORIZEDSCRIPT,
|
||||||
|
ACCESS_AUTHORIZED,
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,16 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Helpers/NormalId.hpp>
|
#include <Helpers/NormalId.hpp>
|
||||||
|
#include <App/V8/Tree/Instance.hpp>
|
||||||
|
|
||||||
|
namespace RNR
|
||||||
|
{
|
||||||
|
class FaceInstance : public Instance, Ogre::ManualObject
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
NormalId m_face;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,16 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace RNR {
|
#include <OGRE/Ogre.h>
|
||||||
Ogre::Vector3 normalIdVectors[] = {
|
|
||||||
Ogre::Vector3(1, 0, 0),
|
|
||||||
Ogre::Vector3(0, 1, 0),
|
|
||||||
Ogre::Vector3(0, 0, 1),
|
|
||||||
Ogre::Vector3(-1, 0, 0),
|
|
||||||
Ogre::Vector3(0, -1, 0),
|
|
||||||
Ogre::Vector3(0, 0, -1),
|
|
||||||
Ogre::Vector3(0, 0, 0)
|
|
||||||
};
|
|
||||||
|
|
||||||
|
namespace RNR {
|
||||||
enum NormalId
|
enum NormalId
|
||||||
{
|
{
|
||||||
NORM_X,
|
NORM_X,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <App/V8/Tree/Instance.hpp>
|
#include <App/V8/Tree/Instance.hpp>
|
||||||
#include <Helpers/NormalId.hpp>
|
#include <Helpers/NormalId.hpp>
|
||||||
|
|
||||||
|
namespace RNR
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,15 @@
|
||||||
#include <OGRE/Ogre.h>
|
#include <OGRE/Ogre.h>
|
||||||
|
|
||||||
namespace RNR {
|
namespace RNR {
|
||||||
|
static Ogre::Vector3 normalIdVectors[] = {
|
||||||
|
Ogre::Vector3(1, 0, 0),
|
||||||
|
Ogre::Vector3(0, 1, 0),
|
||||||
|
Ogre::Vector3(0, 0, 1),
|
||||||
|
Ogre::Vector3(-1, 0, 0),
|
||||||
|
Ogre::Vector3(0, -1, 0),
|
||||||
|
Ogre::Vector3(0, 0, -1),
|
||||||
|
};
|
||||||
|
|
||||||
bool validNormalId(NormalId normalId) {
|
bool validNormalId(NormalId normalId) {
|
||||||
return ((normalId >= 0) && (normalId < 6));
|
return ((normalId >= 0) && (normalId < 6));
|
||||||
}
|
}
|
||||||
|
|
@ -154,7 +163,7 @@ namespace RNR {
|
||||||
return Ogre::Vector3::UNIT_X;
|
return Ogre::Vector3::UNIT_X;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ogre::Vector3 objectToUvw(const Ogre::Vector3& object, NormalId faceId)
|
Ogre::Vector3 objectToUvw(const Ogre::Vector3& object, NormalId faceId)
|
||||||
{
|
{
|
||||||
switch (faceId)
|
switch (faceId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue