Defines | Variables
core/vgui/vgui_cache_wizard.cxx File Reference

See vgui_cache_wizard.h for a description of this file. More...

#include "vgui_cache_wizard.h"
#include <vil1/vil1_crop.h>
#include <vil1/vil1_pixel.h>
#include <vcl_cassert.h>
#include <vcl_iostream.h>
#include <vgui/vgui_pixel.h>
#include <vgui/vgui_macro.h>
#include <vgui/internals/vgui_accelerate.h>

Go to the source code of this file.

Defines

#define DEFAULT_QUADRANT_WIDTH   256
#define DEFAULT_QUADRANT_HEIGHT   256
#define INVALID_TEXTURE_NAME   -1
#define mb_jigerry_pokery(a, b)   ((a/b)+(a%b ? 1:0))
#define mb_is_valid(x)   (int(x) != INVALID_TEXTURE_NAME)
#define fsm_macro_begin(pix, wh)
#define fsm_macro_magic(fmt, typ, sto)
#define fsm_macro_end

Variables

bool debug = false

Detailed Description

See vgui_cache_wizard.h for a description of this file.

Definition in file vgui_cache_wizard.cxx.


Define Documentation

#define DEFAULT_QUADRANT_HEIGHT   256

Definition at line 22 of file vgui_cache_wizard.cxx.

#define DEFAULT_QUADRANT_WIDTH   256

Definition at line 21 of file vgui_cache_wizard.cxx.

#define fsm_macro_begin (   pix,
  wh 
)
Value:
pix *data = new pix[ img.width()*img.height() ]; /* note: this buffer is w-by-h, not allocw-by-alloch */ \
section_ok = img.get_section( data, 0,0, img.width(),img.height() ); \
char const *what = wh; \
/* bool found = false; */ /* used to allow semicolons after macro calls */ \
if (false) {}

Definition at line 206 of file vgui_cache_wizard.cxx.

#define fsm_macro_end
Value:
delete [] data; \
assert(section_ok);

Definition at line 228 of file vgui_cache_wizard.cxx.

#define fsm_macro_magic (   fmt,
  typ,
  sto 
)
Value:
if (format==fmt && type==typ) { \
  if (debug) \
    vcl_cerr << __FILE__ ": converting " << what << " image to " #fmt "," #typ " format\n"; \
  if (!the_pixels) \
    the_pixels = new sto[img.width()*img.height()]; \
  vgui_pixel_convert_span(data, static_cast<sto*>(the_pixels), \
                          img.width()*img.height()); \
}

Definition at line 217 of file vgui_cache_wizard.cxx.

#define INVALID_TEXTURE_NAME   -1

Definition at line 23 of file vgui_cache_wizard.cxx.

#define mb_is_valid (   x)    (int(x) != INVALID_TEXTURE_NAME)

Definition at line 26 of file vgui_cache_wizard.cxx.

#define mb_jigerry_pokery (   a,
 
)    ((a/b)+(a%b ? 1:0))

Definition at line 25 of file vgui_cache_wizard.cxx.


Variable Documentation

bool debug = false

Definition at line 28 of file vgui_cache_wizard.cxx.