Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CAT/CBMagInfo.h File Reference

CBMagInfo.h File Reference


Detailed Description

Color Modification Information for CodeBlind.

Copyright (c) 2002-2008 by Michael Ellison. See COPYING.txt for the Game Accessibility Suite [GAS] License (MIT License).

Definition in file CBMagInfo.h.

#include <stdio.h>

Go to the source code of this file.

Classes

struct  CBMAGINFOSTRUCT
class  CBMagInfo

Defines

#define CBRGBTOGREY(r, g, b)   ((CATUInt8)( 0.3f*(r) + 0.59f*(g) + 0.11f*(b)))
#define CBMAGSUCCESS(x)   ( ( (x) & 0x80000000 ) == 0 )
#define CBMAGFAILED(x)   ( ( (x) & 0x80000000 ) != 0 )
#define CBMAX(a, b)   (((a) > (b)) ? (a) : (b))
#define CBMIN(a, b)   (((a) < (b)) ? (a) : (b))

Enumerations

enum  CBMAGRESULT {
  CBMAG_SUCCESS = 0,
  CBMAG_STAT_NEW_VERSION,
  CBMAG_STAT_ENDIAN_FLIPPED,
  CBMAG_ERROR = 0x80000000,
  CBMAG_ERR_INVALID_PARAMETER,
  CBMAG_ERR_PARAMETER_OUT_OF_RANGE,
  CBMAG_ERR_FILE_CREATE,
  CBMAG_ERR_FILE_OPEN,
  CBMAG_ERR_FILE_READ_FAIL,
  CBMAG_ERR_FILE_WRITE_FAIL,
  CBMAG_ERR_FILE_CORRUPT,
  CBMAG_ERR_OUT_OF_MEMORY,
  CBMAG_ERR_BUF_TOO_SMALL
}

Variables

const int kCBMagMaxNameLength = 127
const int kCBMagNameBufferSize = kCBMagMaxNameLength + 1
const int kCBMagVersion = 1


Generated on Mon Feb 11 04:10:05 2008 for Game Accessibility Suite by doxygen 1.5.4