List of Macros

ut_Config.h

NW_MOVE_ARRAY_VARIABILITY_ENABLED Enables a feature for automatically extending memory for the MoveArray class.
NW_MOVE_ARRAY_CACHE_LINE_ALIGNMENT_ENABLED Enables cache alignment when allocating memory for the MoveArray class.
NW_SIGNAL_MULTI_SLOT_ENABLED Enables a feature for managing multiple Signal class Slots. If not defined, the number of Slots managed by the Signal class is 1.

gfx_Config.h

NW_GFX_BILLBOARD_UPDATE_ENABLED Enables billboard calculations. CPU load can be decreased by disabling this option and rebuilding the library.
NW_GFX_VERTEX_LIGHT_ENABLED Enables vertex lights. CPU load can be decreased by disabling this option and rebuilding the library.
NW_GFX_WORLD_MATRIX_FLAG_UPDATE_ENABLED Enables the update of all flags after the world matrix is calculated.
NW_GFX_MODEL_TRANSLATE_OFFSET_ENABLED Enables a feature for adding an offset to the parallel motion value of models when configuring a shader.
NW_GFX_PROGRAM_OBJECT_ENABLED Enables a feature for generating OpenGL program objects during shader setup. This code is disabled by default.
NW_GFX_USE_BONE_INDEX_SCALE If you enable this definition, the scaling of the bone index is sent to the shader. This code is disabled by default.

lyt_Config.h

NW_LYT_DMPGL_ENABLED

If this definition is ignored, features utilizing DMPGL are removed.

  • DMPGL objects such as program objects and texture objects will not be created.
  • Member variables storing these values are deleted from the class and data structures.
  • The functions (Layout::Draw, Pane::Draw) used to draw layouts using DMPGL are removed from the library.

By default, definitions are enabled.

dev_Config.h

NW_PROFILE_ENABLED Enables the PROFILE macro in the library.

dev_Utility.h

NW_DEV_LOG Outputs a text string to the console regardless of whether the build target is Debug, Development, or Release.

assert.h

NW_COMPILER_ASSERT Assertion at time of compiling.
NW_STATIC_ASSERT Assertion at time of compiling. Can also be placed inside class.
NW_ASSERTMSG Shows message and stops program when conditional expression determined to be false.
NW_ASSERT Stops program when conditional expression determined to be false.
NW_NULL_ASSERT Stops program when exp is NULL.
NW_MIN_ASSERT Stops program when exp is smaller than min.
NW_MAX_ASSERT Stops program when exp is larger than max.
NW_MINMAX_ASSERT Stops program when exp is smaller than min or larger than max.
NW_MINMAXLT_ASSERT Stops program when exp is smaller than min or equal to or larger than max.
NW_FMIN_ASSERT Stops program when exp is smaller than min. For floating-point use.
NW_FMAX_ASSERT Stops program when exp is larger than max. For floating-point use.
NW_FMINMAX_ASSERT Stops program when exp is smaller than min or larger than max. For floating-point use.
NW_FATAL_ERROR Shows a fatal-error message and stops the program.
NW_INTERNAL_ERROR Shows an internal-error message and stops the program.
NW_CACHE_ALIGN_ASSERT Checks for cache alignment and stops the program if cache is not aligned.
NW_ALIGN_ASSERT Stops program when exp is not aligned to align bytes.
NW_ALIGN128_ASSERT Stops program when exp is not aligned to 128 bytes.
NW_ALIGN32_ASSERT Stops program when exp is not aligned to 32 bytes.
NW_ALIGN4_ASSERT Stops program when exp is not aligned to 4 bytes.
NW_ALIGN2_ASSERT Stops program when exp is not aligned to 2 bytes.
NW_BUFFERSIZE_ASSERT Stops program when exp exceeds the maximum physical memory size.
NW_POINTER_ASSERT Stops program when the pointer is invalid.
NW_REFERENCE_ASSERT Stops program when the reference is invalid.
NW_U8_RANGE_ASSERT Stops program when exp is out of u8 range.
NW_S8_RANGE_ASSERT Stops program when exp is out of s8 range.
NW_U16_RANGE_ASSERT Stops program when exp is out of u16 range.
NW_S16_RANGE_ASSERT Stops program when exp is out of s16 range.
NW_U32_RANGE_ASSERT Stops program when exp is out of u32 range.
NW_S32_RANGE_ASSERT Stops program when exp is out of s32 range.
NW_FLOAT_ASSERT Stops program when there is an invalid floating-point value.
NW_GL_ASSERT Displays message and stops program when the GL has returned an error.
NW_WARNING Displays message when conditional expression determined to be false.
NW_FAILSAFE_IF For versions that are not the final version, stops program when conditional expression determined to be true. For the final version, executes the process enclosed in parentheses when the conditional expression is determined to be true.
NW_LOG Shows message.

ut_Preprocessor.h

NW_DISALLOW_COPY_AND_ASSIGN Prohibits class copying and assigning by defining classes as private. This definition is for disabling copy constructors and assignment operators.

ut_Foreach.h

NW_FOREACH This macro is for repeating lists and other elements.

CONFIDENTIAL