sculpto
|
Namespaces | |
namespace | assets_manager |
namespace | console |
namespace | dx |
namespace | math |
namespace | topology |
Typedefs | |
using | degrees = math::degrees< float > |
using | radians = math::radians< float > |
using | vec2 = math::vec2< float > |
using | vec3 = math::vec3< float > |
using | vec4 = math::vec4< float > |
using | ivec2 = math::vec2< int > |
using | ivec3 = math::vec3< int > |
using | ivec4 = math::vec4< int > |
using | uvec2 = math::vec2< u32 > |
using | uvec3 = math::vec3< u32 > |
using | uvec4 = math::vec4< u32 > |
using | matr3 = math::matr3< float > |
using | matr3_data = math::matr3_data< float > |
using | matr4 = math::matr4< float > |
using | matr4_data = math::matr4_data< float > |
using | window_handle = int |
using | scene_object_handle = entt::entity |
using | json = nlohmann::json |
using | i8 = int8_t |
using | u8 = uint8_t |
using | i16 = int16_t |
using | u16 = uint16_t |
using | i32 = int32_t |
using | u32 = uint32_t |
using | i64 = int64_t |
using | u64 = uint64_t |
template<typename T > | |
using | shared = std::shared_ptr< T > |
template<typename T > | |
using | unique = std::unique_ptr< T > |
template<typename T > | |
using | weak = std::weak_ptr< T > |
using | string_id = unsigned int |
Enumerations | |
enum class | keycode : int { UNKNOWN = -1 , SPACE = 32 , A = 65 , B = 66 , C = 67 , D = 68 , E = 69 , F = 70 , G = 71 , H = 72 , I = 73 , J = 74 , K = 75 , L = 76 , M = 77 , N = 78 , O = 79 , P = 80 , Q = 81 , R = 82 , S = 83 , T = 84 , U = 85 , V = 86 , W = 87 , X = 88 , Y = 89 , Z = 90 , F1 = 290 , F2 = 291 , F3 = 292 , F4 = 293 , F5 = 294 , F6 = 295 , F7 = 296 , F8 = 297 , F9 = 298 , F10 = 299 , F11 = 300 , F12 = 301 , F13 = 302 , F14 = 303 , F15 = 304 , F16 = 305 , F17 = 306 , F18 = 307 , F19 = 308 , F20 = 309 , F21 = 310 , F22 = 311 , F23 = 312 , F24 = 313 , F25 = 314 } |
enum class | mouse_button { LEFT = 0 , RIGHT = 1 , MIDDLE = 2 } |
enum class | usage_type : u8 { STREAM_DRAW , STREAM_READ , STREAM_COPY , STATIC_DRAW , STATIC_READ , STATIC_COPY , DYNAMIC_DRAW , DYNAMIC_READ , DYNAMIC_COPY } |
enum class | buffer_type : u8 { ARRAY , ELEMENT_ARRAY , SHADER_STORAGE } |
enum class | shader_type { VERTEX , GEOMETRY , PIXEL , COMPUTE } |
enum class | texture_type { COLOR , COLOR_FLOATING_POINT , DEPTH } |
enum class | mesh_type { LINES , POINTS , PATCHES , TRIANGLES , TRISTRIP } |
enum class | shader_variable_type : u8 { BOOL , INT , INT2 , INT3 , INT4 , FLOAT , FLOAT2 , FLOAT3 , FLOAT4 , MATR3 , MATR4 } |
enum class | render_cull_face_mode { OFF , BACK , FRONT } |
enum class | render_context_api { OpenGL , DirectX } |
enum class | camera_projection_type { ORTHOGRAPHIC , PERSPECTIVE } |
Functions | |
application * | CreateApplication () |
void | to_json (json &Json, const name_component &NameComponent) |
void | to_json (json &Json, const transform_component &TransformComponent) |
void | to_json (json &Json, const camera_component &CameraComponent) |
void | to_json (json &Json, const point_light_component &PointLightComponent) |
void | to_json (json &Json, const directional_light_component &DirectionalLightComponent) |
void | to_json (json &Json, const spot_light_component &SpotLightComponent) |
bool | from_json (const json &Json, name_component &NameComponent) |
bool | from_json (const json &Json, transform_component &TransformComponent) |
bool | from_json (const json &Json, camera_component &CameraComponent) |
bool | from_json (const json &Json, point_light_component &PointLightComponent) |
bool | from_json (const json &Json, directional_light_component &DirectionalLightComponent) |
bool | from_json (const json &Json, spot_light_component &SpotLightComponent) |
std::ostream & | operator<< (std::ostream &os, const event &e) |
const std::string | CurrentTime () |
void | MemorySwap (void *BlockA, void *BlockB, size_t Size) |
template<typename T , typename... Args> | |
constexpr shared< T > | CreateShared (Args &&... args) |
template<typename T , typename... Args> | |
constexpr unique< T > | CreateUnique (Args &&... args) |
template<size_t Length> | |
fixed_string (const char(&str)[Length]) -> fixed_string< Length - 1 > | |
u32 | SplitString (const std::string &String, std::string &Delimiter, std::vector< std::string > &OutputSequence) |
constexpr string_id | crc32_impl (const char *p, size_t len, string_id crc) |
constexpr string_id | crc32 (const char *data, size_t length) |
constexpr size_t | strlen_c (const char *str) |
constexpr string_id | StringId (const char *Str) |
template<typename StringClass > | |
constexpr string_id | StringId (const StringClass &Str) |
constexpr string_id | operator""_id (const char *Str, size_t Length) |
Standart types definition.
********** Point Light Contants ************* Distance Constant Linear Quadratic 0007, 1.0, 0.7 , 1.8 0013, 1.0, 0.35 , 0.44 0020, 1.0, 0.22 , 0.20 0032, 1.0, 0.14 , 0.07 0050, 1.0, 0.09 , 0.032 0065, 1.0, 0.07 , 0.017 0100, 1.0, 0.045 , 0.0075 0160, 1.0, 0.027 , 0.0028 0200, 1.0, 0.022 , 0.0019 0325, 1.0, 0.014 , 0.0007 0600, 1.0, 0.007 , 0.0002 3250, 1.0, 0.0014, 0.000007
Shader program class declaration.
using scl::degrees = typedef math::degrees<float> |
using scl::i16 = typedef int16_t |
Definition at line 18 of file math_common.h.
using scl::i32 = typedef int32_t |
Definition at line 20 of file math_common.h.
using scl::i64 = typedef int64_t |
Definition at line 22 of file math_common.h.
using scl::i8 = typedef int8_t |
Atomic types.
Definition at line 16 of file math_common.h.
using scl::ivec2 = typedef math::vec2<int> |
using scl::ivec3 = typedef math::vec3<int> |
using scl::ivec4 = typedef math::vec4<int> |
using scl::json = typedef nlohmann::json |
Definition at line 12 of file scene_serializer.h.
using scl::matr3 = typedef math::matr3<float> |
using scl::matr3_data = typedef math::matr3_data<float> |
using scl::matr4 = typedef math::matr4<float> |
using scl::matr4_data = typedef math::matr4_data<float> |
using scl::radians = typedef math::radians<float> |
using scl::scene_object_handle = typedef entt::entity |
using scl::shared = typedef std::shared_ptr<T> |
Shared smart pointer.
Definition at line 15 of file smart_ptr.h.
using scl::string_id = typedef unsigned int |
Definition at line 64 of file string_id.h.
using scl::u16 = typedef uint16_t |
Definition at line 19 of file math_common.h.
using scl::u32 = typedef uint32_t |
Definition at line 21 of file math_common.h.
using scl::u64 = typedef uint64_t |
Definition at line 23 of file math_common.h.
using scl::u8 = typedef uint8_t |
Definition at line 17 of file math_common.h.
using scl::unique = typedef std::unique_ptr<T> |
Unique smart pointer.
Definition at line 25 of file smart_ptr.h.
using scl::uvec2 = typedef math::vec2<u32> |
using scl::uvec3 = typedef math::vec3<u32> |
using scl::uvec4 = typedef math::vec4<u32> |
using scl::vec2 = typedef math::vec2<float> |
using scl::vec3 = typedef math::vec3<float> |
using scl::vec4 = typedef math::vec4<float> |
using scl::weak = typedef std::weak_ptr<T> |
Weak smart pointer (do not increases counter).
Definition at line 35 of file smart_ptr.h.
using scl::window_handle = typedef int |
|
strong |
Buffer type enum.
Enumerator | |
---|---|
ARRAY | |
ELEMENT_ARRAY | |
SHADER_STORAGE |
|
strong |
Camera projection type enum.
Enumerator | |
---|---|
ORTHOGRAPHIC | |
PERSPECTIVE |
|
strong |
Input system platform independent key codes enum class.
Enumerator | |
---|---|
UNKNOWN | |
SPACE | |
A | |
B | |
C | |
D | |
E | |
F | |
G | |
H | |
I | |
J | |
K | |
L | |
M | |
N | |
O | |
P | |
Q | |
R | |
S | |
T | |
U | |
V | |
W | |
X | |
Y | |
Z | |
F1 | |
F2 | |
F3 | |
F4 | |
F5 | |
F6 | |
F7 | |
F8 | |
F9 | |
F10 | |
F11 | |
F12 | |
F13 | |
F14 | |
F15 | |
F16 | |
F17 | |
F18 | |
F19 | |
F20 | |
F21 | |
F22 | |
F23 | |
F24 | |
F25 |
Definition at line 14 of file input_keycodes.h.
|
strong |
Mesh types enum.
Enumerator | |
---|---|
LINES | |
POINTS | Line segments (by 2 points) |
PATCHES | Array of points |
TRIANGLES | Tesselation patchesz |
TRISTRIP | Triangle mesh - array of triangles |
Definition at line 17 of file vertex_array.h.
|
strong |
Enumerator | |
---|---|
LEFT | |
RIGHT | |
MIDDLE |
Definition at line 15 of file mouse_event.h.
|
strong |
Render context backend api enum.
Enumerator | |
---|---|
OpenGL | |
DirectX |
Definition at line 47 of file render_context.h.
|
strong |
Render contextu culling mode.
Enumerator | |
---|---|
OFF | |
BACK | |
FRONT |
Definition at line 39 of file render_context.h.
|
strong |
|
strong |
|
strong |
|
strong |
Buffer usage enum.
Enumerator | |
---|---|
STREAM_DRAW | |
STREAM_READ | |
STREAM_COPY | |
STATIC_DRAW | |
STATIC_READ | |
STATIC_COPY | |
DYNAMIC_DRAW | |
DYNAMIC_READ | |
DYNAMIC_COPY |
Definition at line 18 of file buffer.h.
|
constexpr |
Definition at line 73 of file string_id.h.
Definition at line 66 of file string_id.h.
scl::application * scl::CreateApplication | ( | ) |
|
constexpr |
Definition at line 18 of file smart_ptr.h.
|
constexpr |
Definition at line 28 of file smart_ptr.h.
|
inline |
None. |
Definition at line 19 of file current_time.h.
scl::fixed_string | ( | const char(&) | str[Length] | ) | -> fixed_string< Length - 1 > |
Fixed length string class constructor with deduced template.
bool scl::from_json | ( | const json & | Json, |
camera_component & | CameraComponent | ||
) |
Definition at line 99 of file scene_serializer.cpp.
bool scl::from_json | ( | const json & | Json, |
directional_light_component & | DirectionalLightComponent | ||
) |
Definition at line 152 of file scene_serializer.cpp.
bool scl::from_json | ( | const json & | Json, |
name_component & | NameComponent | ||
) |
Definition at line 78 of file scene_serializer.cpp.
bool scl::from_json | ( | const json & | Json, |
point_light_component & | PointLightComponent | ||
) |
Definition at line 136 of file scene_serializer.cpp.
bool scl::from_json | ( | const json & | Json, |
spot_light_component & | SpotLightComponent | ||
) |
Definition at line 172 of file scene_serializer.cpp.
bool scl::from_json | ( | const json & | Json, |
transform_component & | TransformComponent | ||
) |
Definition at line 87 of file scene_serializer.cpp.
|
inline |
BlockA | - first memory block. |
BlockB | - second memory block. |
Size | - blocks size in bytes. |
Definition at line 23 of file memory_swap.h.
|
constexpr |
Str | - srting to genrerate id of. |
Definition at line 108 of file string_id.h.
|
inline |
u32 scl::SplitString | ( | const std::string & | String, |
std::string & | Delimiter, | ||
std::vector< std::string > & | OutputSequence | ||
) |
String | - string to split. | |
Delimiter | - delimiter character or string. | |
[out] | OutputSequence | - array of cplitted by delimiter strings. |
Definition at line 23 of file split_string.h.
|
constexpr |
Str | - srting to genrerate id of. |
Definition at line 87 of file string_id.h.
|
constexpr |
Str | - srting to genrerate id of. |
Definition at line 98 of file string_id.h.
|
constexpr |
Definition at line 77 of file string_id.h.
void scl::to_json | ( | json & | Json, |
const camera_component & | CameraComponent | ||
) |
Definition at line 31 of file scene_serializer.cpp.
void scl::to_json | ( | json & | Json, |
const directional_light_component & | DirectionalLightComponent | ||
) |
Definition at line 59 of file scene_serializer.cpp.
void scl::to_json | ( | json & | Json, |
const name_component & | NameComponent | ||
) |
Components serialization/deserialization to json format functions.
Definition at line 19 of file scene_serializer.cpp.
void scl::to_json | ( | json & | Json, |
const point_light_component & | PointLightComponent | ||
) |
Definition at line 50 of file scene_serializer.cpp.
void scl::to_json | ( | json & | Json, |
const spot_light_component & | SpotLightComponent | ||
) |
Definition at line 70 of file scene_serializer.cpp.
void scl::to_json | ( | json & | Json, |
const transform_component & | TransformComponent | ||
) |
Definition at line 24 of file scene_serializer.cpp.