Gizmo3D

gzDbFlags.h File Reference

Enum definitions of loader flags for DB and IMAGE loaders. More...

#include "gzImage.h"

Go to the source code of this file.

Defines

#define GZ_DB_FLAG_NUM(x)   (gzSerializeAdapterFlags)(((gzULongLong)1)<<( x+GZ_IMAGE_FLAG_MAX_SIZE))

Variables

const gzSerializeAdapterFlags GZ_DB_FLAGS_DEFAULT = (gzSerializeAdapterFlags)0
 Feature flags for DB loaders.
const gzSerializeAdapterFlags GZ_DB_FLAGS_FLIP_DDS_IMAGES = GZ_IMAGE_FLAGS_FLIP_DDS_IMAGES
const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_CACHED_IMAGE = GZ_IMAGE_FLAGS_NO_CACHED_IMAGE
const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_ALTERNATE_IMAGE_EXT = GZ_IMAGE_FLAGS_NO_ALTERNATE_IMAGE_EXT
const gzSerializeAdapterFlags GZ_DB_FLAGS_IGNORE_IMAGE_MIPMAPS = GZ_IMAGE_FLAGS_IGNORE_IMAGE_MIPMAPS
const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_DXT1_ALPHA = GZ_IMAGE_FLAGS_NO_DXT1_ALPHA
 Use this flag to load dxt1 images (.dds) without alpha.
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_ANIMATION = GZ_DB_FLAG_NUM(0)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_MIPMAPS = GZ_DB_FLAG_NUM(1)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_DYNAMIC_LOADING = GZ_DB_FLAG_NUM(2)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_NAME_ENCODED_NODES = GZ_DB_FLAG_NUM(3)
const gzSerializeAdapterFlags GZ_DB_FLAGS_GENERATE_LIGHT_MATERIAL = GZ_DB_FLAG_NUM(4)
const gzSerializeAdapterFlags GZ_DB_FLAGS_SMOOTH_BINARY_ALPHA = GZ_DB_FLAG_NUM(5)
const gzSerializeAdapterFlags GZ_DB_FLAGS_FAST_BINARY_ALPHA = GZ_DB_FLAG_NUM(6)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_INDEXED_GEOMETRY = GZ_DB_FLAG_NUM(7)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_DISPLAYLIST_GEOMETRY = GZ_DB_FLAG_NUM(8)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_BUFFERED_GEOMETRY = GZ_DB_FLAG_NUM(9)
const gzSerializeAdapterFlags GZ_DB_FLAGS_CONVERT_IMAGES_TO_GRAYSCALE = GZ_DB_FLAG_NUM(10)
const gzSerializeAdapterFlags GZ_DB_FLAGS_COMPRESS_ON_GPU = GZ_DB_FLAG_NUM(11)
const gzSerializeAdapterFlags GZ_DB_FLAGS_DISPOSE_TEX_IMAGE = GZ_DB_FLAG_NUM(12)
const gzSerializeAdapterFlags GZ_DB_FLAGS_DISPOSE_BUFFERED_GEOMETRY = GZ_DB_FLAG_NUM(13)
const gzSerializeAdapterFlags GZ_DB_FLAGS_CHECK_DDS_ALPHA = GZ_DB_FLAG_NUM(14)
const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_SORT_CONT_ALPHA = GZ_DB_FLAG_NUM(15)
const gzSerializeAdapterFlags GZ_DB_FLAGS_OPTIMIZE_DB = GZ_DB_FLAG_NUM(16)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_TWO_PASS_ALPHA = GZ_DB_FLAG_NUM(17)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_FOUR_PASS_ALPHA = GZ_DB_FLAG_NUM(18)
const gzSerializeAdapterFlags GZ_DB_FLAGS_OPTIMIZE_IMAGE_DATA = GZ_DB_FLAG_NUM(19)
const gzSerializeAdapterFlags GZ_DB_FLAGS_READ_ONLY_HEADER = GZ_DB_FLAG_NUM(20)
const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_FLAT_GEOMETRY = GZ_DB_FLAG_NUM(21)
const gzSerializeAdapterFlags GZ_DB_FLAGS_SKIP_NODE_NAMES = GZ_DB_FLAG_NUM(22)
const gzSerializeAdapterFlags GZ_DB_FLAGS_DONT_SAVE_HIEARCHY = GZ_DB_FLAG_NUM(23)
const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_PHONG_LIGHT = GZ_DB_FLAG_NUM(24L)


Detailed Description

Enum definitions of loader flags for DB and IMAGE loaders.

Definition in file gzDbFlags.h.


Define Documentation

#define GZ_DB_FLAG_NUM  )     (gzSerializeAdapterFlags)(((gzULongLong)1)<<( x+GZ_IMAGE_FLAG_MAX_SIZE))
 

Definition at line 32 of file gzDbFlags.h.


Variable Documentation

const gzSerializeAdapterFlags GZ_DB_FLAGS_CHECK_DDS_ALPHA = GZ_DB_FLAG_NUM(14)
 

Normally Gizmo3D treats DXT1 as opaque, DXT3 as binary alpha and DXT5 as continious alpha. However this is not always correct. The flag enables a calculation of the image during load.

Definition at line 153 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_COMPRESS_ON_GPU = GZ_DB_FLAG_NUM(11)
 

This flag will tell Gizmo3D to compress images as they are read. Converts all images to compressed formats.

Definition at line 134 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_CONVERT_IMAGES_TO_GRAYSCALE = GZ_DB_FLAG_NUM(10)
 

This flag will tell Gizmo3D to convert read images to grayscale. Allows view usage of imagages on low memory apps.

Examples:
dbviewer.cpp.

Definition at line 128 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_DEFAULT = (gzSerializeAdapterFlags)0
 

Feature flags for DB loaders.

Examples:
dbviewer.cpp.

Definition at line 35 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_DISPOSE_BUFFERED_GEOMETRY = GZ_DB_FLAG_NUM(13)
 

This flag will tell Gizmo3D to dispose memory on CPU. You will not be able to read the geometry again but you will get a very fast rendering of it. Must be combined with GZ_DB_FLAGS_USE_BUFFERED_GEOMETRY.

Definition at line 147 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_DISPOSE_TEX_IMAGE = GZ_DB_FLAG_NUM(12)
 

This flag will tell Gizmo3D to drop the image from CPU mem. You can not read the image after this.

Definition at line 140 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_DONT_SAVE_HIEARCHY = GZ_DB_FLAG_NUM(23)
 

Definition at line 179 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_FAST_BINARY_ALPHA = GZ_DB_FLAG_NUM(6)
 

This flag will tell Gizmo3D to not use alpha blending for binary alpha images. Gives better performance but the actual “edge” of the image is non transparent.

Definition at line 102 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_FLIP_DDS_IMAGES = GZ_IMAGE_FLAGS_FLIP_DDS_IMAGES
 

This will flip .dds images referenced by the dataset as the .dds format is ambigious from some vendors.

Definition at line 40 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_GENERATE_LIGHT_MATERIAL = GZ_DB_FLAG_NUM(4)
 

This flag will tell Gizmo3D to generate light material properties and to smooth shade the geometry (generate normals) to models that doesn’t have light material properties. This way pure geometry will look shaded under a light lamp.

Examples:
dbviewer.cpp.

Definition at line 89 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_IGNORE_IMAGE_MIPMAPS = GZ_IMAGE_FLAGS_IGNORE_IMAGE_MIPMAPS
 

Definition at line 57 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_ALTERNATE_IMAGE_EXT = GZ_IMAGE_FLAGS_NO_ALTERNATE_IMAGE_EXT
 

Gizmo3D normally tries to load alternate images when an image is not understood by the loader. E.g. a database might reference a file “test.tiff” and there is no “tiff” reader registered. In that case Gizmo3D normally want to find a “test.dds” or a “test.bmp” file. This flag disables that search.

Definition at line 55 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_CACHED_IMAGE = GZ_IMAGE_FLAGS_NO_CACHED_IMAGE
 

The image will not be cached for later on usage. Normally when an image is read by a loader the image is cached so consecutive loaders will use the same instance. Sometimes you want to change path with the GIZMO_PATH environment variable to change time of year etc. Then you want to use the same name of the image but a different file.

Definition at line 48 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_DXT1_ALPHA = GZ_IMAGE_FLAGS_NO_DXT1_ALPHA
 

Use this flag to load dxt1 images (.dds) without alpha.

Definition at line 60 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_FLAT_GEOMETRY = GZ_DB_FLAG_NUM(21)
 

Definition at line 175 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_NO_SORT_CONT_ALPHA = GZ_DB_FLAG_NUM(15)
 

This flag will tell Gizmo3D to treat all alpha images as binary alpha. No sorting is done for any alpha image. The fastest way to render alpha images, but you might get anomalies where some images might exclude others even if they are transparent.

Definition at line 160 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_OPTIMIZE_DB = GZ_DB_FLAG_NUM(16)
 

This flag auto enables the gzNodeOptimizer to run the db before returning the node handle.

Definition at line 165 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_OPTIMIZE_IMAGE_DATA = GZ_DB_FLAG_NUM(19)
 

Definition at line 171 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_READ_ONLY_HEADER = GZ_DB_FLAG_NUM(20)
 

Definition at line 173 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_SKIP_NODE_NAMES = GZ_DB_FLAG_NUM(22)
 

Definition at line 177 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_SMOOTH_BINARY_ALPHA = GZ_DB_FLAG_NUM(5)
 

This flag will tell Gizmo3D to smooth binary alpha. Images with nearly two distinct alpha levels will be smoothed and sorted in the normal alpha sorting pipeline. Gives better images, but lower performance.

Definition at line 96 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_ANIMATION = GZ_DB_FLAG_NUM(0)
 

This flag will tell Gizmo3D to add keyframe transforms for animations instead of static transforms in the scene graph.

Examples:
dbviewer.cpp.

Definition at line 65 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_BUFFERED_GEOMETRY = GZ_DB_FLAG_NUM(9)
 

This flag will tell Gizmo3D to use VBO (Vertex Buffer Objects) for the geometry. A very fast way to render. However the memory consumption is doubled as the geometry is stored both in CPU mem and GFX mem.

Examples:
dbviewer.cpp.

Definition at line 122 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_DISPLAYLIST_GEOMETRY = GZ_DB_FLAG_NUM(8)
 

This flag will tell Gizmo3D to create display lists of the geometries. The geometries are compiled into displaylists the first time. Very fast on HW that supports displaylists good e.g. SGI HW.

Examples:
dbviewer.cpp.

Definition at line 115 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_DYNAMIC_LOADING = GZ_DB_FLAG_NUM(2)
 

This flag will tell Gizmo3D to use a dynamic loader in some cases. The loader will not wait for the loading to return, but a background process will load the database.

Definition at line 76 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_FOUR_PASS_ALPHA = GZ_DB_FLAG_NUM(18)
 

Definition at line 169 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_INDEXED_GEOMETRY = GZ_DB_FLAG_NUM(7)
 

This flag will tell Gizmo3D to create indexed geometry. Geometry with many same coordinates referenced by many triangles etc. will be faster as indexed geometry.

Examples:
dbviewer.cpp.

Definition at line 108 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_MIPMAPS = GZ_DB_FLAG_NUM(1)
 

This flag will tell Gizmo3D to automatically enable mip maps for all loaded textures.

Examples:
dbviewer.cpp, and lod.cpp.

Definition at line 70 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_NAME_ENCODED_NODES = GZ_DB_FLAG_NUM(3)
 

This flag will tell Gizmo3D to use a name encoding schema. The node names e.g. in a .3ds file will be used to create billboards, switches etc. even if the format doesn’t support them. See node name encodings.

Examples:
dbviewer.cpp.

Definition at line 82 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_PHONG_LIGHT = GZ_DB_FLAG_NUM(24L)
 

Definition at line 181 of file gzDbFlags.h.

const gzSerializeAdapterFlags GZ_DB_FLAGS_USE_TWO_PASS_ALPHA = GZ_DB_FLAG_NUM(17)
 

Examples:
dbviewer.cpp.

Definition at line 167 of file gzDbFlags.h.


Documentation for Gizmo3D generated at Wed Feb 20 11:54:13 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond