3DCoat Core API
The 3DCoat API documentation.
|
Static Public Member Functions | |
static vec4 | dwordToVec4 (unsigned int d) |
convert DWORD (unsigned int) to vec4 | |
static unsigned | vec4ToDword (const vec4 &v) |
convert vec4 to DWORD (unsigned int) | |
static void | randomize (int seed) |
set the random seed for all further random value generation | |
static float | random01 () |
get the random value 0..1 | |
static float | random (float min, float max) |
get the random value in range | |
static vec3 | randomNormal () |
get the normalized random vector | |
static vec3 | perlin3d (vec3 p, float seed=0) |
returns the perlin noise 3d vector | |
static float | perlin (vec3 p, float seed=0) |
generate the perlin noise value | |
static const char * | getEnumValueByIndex (const char *enumID, int index) |
get the value from the global strings list by index. That lists used in dropdown boxes in UI | |
static int | getEnumValue (const char *enumID, const char *key) |
get the integer value that corresponds to the string value from the global strings list. | |
static int | getEnumValueIndex (const char *enumID, const char *key) |
get the index of the value in the global strings list. That lists used in dropdown boxes in UI | |
static int | getEnumValuesCount (const char *enumID) |
get the count of the values in the global strings list. That lists used in dropdown boxes in UI | |
static void | clearEnum (const char *enumID) |
clear the global strings list. | |
static void | addEnumValue (const char *enumID, const char *key, int value=- 1) |
add the value to the global strings list. | |
static void | quit () |
exit the 3DCoat | |
static void | testSuccessful () |
report that the test was successful. In this case the file "InstallFolder/.installer/test_success.txt created | |
static void | testFailed (const char *message) |
report that the test was successful. In this case the file "InstallFolder/.installer/test_failed.txt created | |
static void | signal (const char *message) |
send some message to 3DCoat (usually used for internal purposes) | |
static std::vector< std::string > & | last_signals () |
get the list of last signals sent to 3DCoat | |
static float | getFPS () |
get the current FPS | |
static float | getFrameTimeMs () |
get the frame time in milliseconds | |
static bool | inRenderProcess () |
check if the viewport is in render process in render room | |
static void | set (const char *key, const char *value) |
Globally set the value for the key, it is even stored between sessions of the 3DCoat. | |
static const char * | get (const char *key) |
Get previously stored value by the key. | |
|
static |
add the value to the global strings list.
enumID | the enumerator ID |
key | the string to add |
value | the integer value that corresponds to the string, -1 means that the value will be the index of the string in the list, it is default value |
|
static |
clear the global strings list.
enumID | the enumerator ID |
|
static |
convert DWORD (unsigned int) to vec4
d | the DWORD (unsigned int) |
|
static |
Get previously stored value by the key.
key | the key |
|
static |
get the integer value that corresponds to the string value from the global strings list.
enumID | the enumerator ID |
key | the string value fo find |
|
static |
get the value from the global strings list by index. That lists used in dropdown boxes in UI
enumID | the enumerator ID |
index | the index of the value |
|
static |
get the index of the value in the global strings list. That lists used in dropdown boxes in UI
enumID | the enumerator ID |
key | the value to find |
|
static |
get the count of the values in the global strings list. That lists used in dropdown boxes in UI
enumID | the enumerator ID |
|
static |
get the current FPS
|
static |
get the frame time in milliseconds
|
static |
check if the viewport is in render process in render room
|
static |
get the list of last signals sent to 3DCoat
|
static |
generate the perlin noise value
p | the value in 3d space |
seed | the seed |
returns the perlin noise 3d vector
p | the value in 3d space |
seed | the seed |
|
static |
get the random value in range
min | low bound |
max | high bound |
|
static |
get the random value 0..1
|
static |
set the random seed for all further random value generation
seed | the seed |
|
static |
get the normalized random vector
|
static |
Globally set the value for the key, it is even stored between sessions of the 3DCoat.
key | the key |
value | the value to store |
|
static |
send some message to 3DCoat (usually used for internal purposes)
message | the message |
|
static |
report that the test was successful. In this case the file "InstallFolder/.installer/test_failed.txt created
message | the message to put into that file |
|
static |
convert vec4 to DWORD (unsigned int)
v | the 4d vector |