 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
85 real luminance_threshold;
107 {1,
"haloman30",
"Initial implementation."},
121 "fields can be overridden by instances",
124 "shape of the light"),
125 new Enum32Field(
"shape",
"The shape/type of the light source.",
134 new RealField(
"power scale",
"The relative power scale of the light."),
136 "color and intensity of the light"),
140 "determines how the light is rendered when the camera is close or far from the light"),
141 new RealField(
"maximum distance",
"The maximum distance that this light will be visible. If the camera is further than this distance away from the light, then the light will no longer be rendered."),
142 new RealField(
"near clip distance",
"The near clip distance of the light. If the camera is this close to the light, shadows will stop being rendered. Only applies when using texture shadows."),
143 new RealField(
"far clip distance",
"The far clip distance of the light. If the camera is at least this far from the light, shadows will stop being rendered. Only applies when using texture shadows."),
144 new RealField(
"near shadow distance",
"The near shadow distance of the light. If the camera is this close to the light, shadows will no longer be cast by this light source."),
145 new RealField(
"far shadow distance",
"The far shadow distance of the light. If the camera is this far from the light, shadows will no longer be cast by this light source."),
149 "the shape of the spotlight"),
153 "the falloff of the spotlight"),
158 "Controls how light diminishes with distance.\n"
160 "Of the two blocks listed below, only one will be used based on the 'attenuation method' value:\n"
161 "* simple - The 'simple attenuation' block is used.\n"
162 "* complex - The 'complex attenuation' block is used.\n"
164 "Only the first entry of a block will be used. Any other entries are ignored."),
173 new RealField(
"luminance threshold",
""),
Namespace containing functions related to tag data.
Definition: bitmap.h:197
Class representing a real tag field.
Definition: real.h:16
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BLAM bool GlobalExists(std::string id)
Determines whether or not a global exists.
Definition: globals.cpp:27
@ Real
Definition: globals.h:25
@ String
Represents a std::string.
Definition: globals.h:29
@ Long
Represents a long.
Definition: globals.h:27
real near_clip_distance
The near clip distance of the light. If the camera is this close to the light, shadows will stop bein...
Definition: light.h:53
BLAM BlamGlobalUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:574
@ InvalidArgs
The provided arguments were invalid.
@ Boolean
Represents a boolean. Can be true or false.
Definition: globals.h:24
TAG_ENUM(shape, { directional, point, spotlight, virtual_point, area_cheap, area_pbr, })
The shape/type of the light source.
std::string name
The name of the global.
Definition: globals.h:47
Namespace containing functions relating to game engine globals.
Definition: globals.h:23
real far_clip_distance
The far clip distance of the light. If the camera is at least this far from the light,...
Definition: light.h:54
BLAM bool LoadGlobalsFromFile()
Loads any globals from #GVARS_FILE.
Definition: globals.cpp:202
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:403
bool boolean_value
The boolean value of the global.
Definition: globals.h:56
@ OutOfBounds
The provided value was too small or too large for the globals' data type.
@ Int
Represents an int.
Definition: globals.h:30
Class representing a bitfield16 tag field.
Definition: bitfield.h:44
real near_shadow_distance
The near shadow distance of the light. If the camera is this close to the light, shadows will no long...
Definition: light.h:55
TAG_BLOCK(spotlight_settings, { real inner_angle;real outer_angle;real falloff;real near_clip_distance;})
@ InvalidType
The provided value was of an invalid type.
BLAM BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: globals.cpp:415
std::string info
An optional description of the global.
Definition: globals.h:48
BlamGlobalUpdateResult
Enumerator for the result of a global update attempt.
Definition: globals.h:9
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:200
#define GLOBALS_FILE
The file to read globals from.
Definition: globals.h:12
BlamGlobalType type
The type of the global.
Definition: globals.h:46
std::vector< BlamTagClassRevision > revisions
List of all tag class revisions. Does not get written to tags, but is included in plugin files.
Definition: tags.h:199
@ GlobalIsProtected
The specified global is protected and cannot be modified during runtime.
bitfield16 flags
Definition: light.h:29
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:197
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
BlamGlobalType
Enumerator for the type of global variable.
Definition: globals.h:22
color diffuse_color
Definition: light.h:48
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:198
Structure containing data for a game engine global.
Definition: globals.h:44
real power_scale
The relative power scale of the light.
Definition: light.h:45
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:196
BLAM void RegisterGlobal(BlamEngineGlobal var)
Registers a new engine global.
Definition: globals.cpp:61
BLAM short * GetGlobalAsShort(std::string name)
Retrieves a global's value as a short.
Definition: globals.cpp:367
@ Resources
Directory containing other resources and data, usually string tables and globals. Defaults to ....
short short_value
The short value of the global.
Definition: globals.h:57
bool read_only
Whether or not the global is protected from modification.
Definition: globals.h:50
BLAM std::string GetGlobalTypeLabel(BlamGlobalType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: globals.cpp:40
BLAM BlamEngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:189
BlamColor color_value
The color value of the global.
Definition: globals.h:61
Offset font vertically by altering the io Font DisplayOffset value
Definition: README.txt:67
@ Short
!< Represents a float.
Definition: globals.h:26
BLAM long * GetGlobalAsLong(std::string name)
Retrieves a global's value as a long.
Definition: globals.cpp:379
std::map< std::string, BlamEngineGlobal > globals
The list of loaded globals.
Definition: globals.cpp:20
BLAM globals * GetGlobalsTag(std::string tag_path)
Definition: globals.cpp:16
Typedef for a bitfield16 field, used in tag data definitions.
Definition: tags.h:359
@ UnknownGlobal
The specified global does not exist.
#define BLAM
Definition: light.h:19
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:201
int int_value
The int value of the global.
Definition: globals.h:59
Class representing a color tag field.
Definition: color.h:19
@ Ok
The global was updated successfully.
LightTagClass()
Definition: light.h:100
BLAM std::string * GetGlobalAsString(std::string name)
Retrieves a global's value as a string.
Definition: globals.cpp:355
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:130
color specular_color
Definition: light.h:49
Class used to contain and access tag data.
Definition: tags.h:124
BLAM BlamGlobalUpdateResult UpdateGlobalWrap(std::string name, std::string new_value)
Updates a global's raw value.
Definition: globals.cpp:431
float float_value
The float value of the global.
Definition: globals.h:60
Class representing a tag block field, also sometimes referred to as a struct or reflexive in the modd...
Definition: block.h:19
BLAM light * GetLightTag(std::string tag_path)
Definition: light.cpp:16
std::string value_raw
The raw value of the global as a string.
Definition: globals.h:49
real maximum_distance
The maximum distance that this light will be visible. If the camera is further than this distance awa...
Definition: light.h:52
BLAM bool * GetGlobalAsBoolean(std::string name)
Retrieves a global's value as a boolean.
Definition: globals.cpp:343
Class representing a tag class.
Definition: tags.h:193
@ Color
Represents a BlamColor. See #BlamColor for details.
Definition: globals.h:31
BLAM std::map< std::string, BlamEngineGlobal > * GetGlobalsList()
Retrieves the list of loaded globals.
Definition: globals.cpp:22
long long_value
The long value of the global.
Definition: globals.h:58
real far_shadow_distance
The far shadow distance of the light. If the camera is this far from the light, shadows will no longe...
Definition: light.h:56
BLAM int * GetGlobalAsInteger(std::string name)
Retrieves a global's value as an int.
Definition: globals.cpp:391