DirectX 5 Redocumentation
A redocumentation of DirectX 5, brought to you by a bunch of Infomaniacs.
_D3DRMIMAGE Struct Reference

#include <d3drmdef.h>

Data Fields

int width
 
int height
 
int aspectx
 
int aspecty
 
int depth
 
int rgb
 
int bytes_per_line
 
void * buffer1
 
void * buffer2
 
unsigned long red_mask
 
unsigned long green_mask
 
unsigned long blue_mask
 
unsigned long alpha_mask
 
int palette_size
 
D3DRMPALETTEENTRYpalette
 

Field Documentation

◆ alpha_mask

unsigned long _D3DRMIMAGE::alpha_mask

if rgb is true, these are masks for the red, green and blue parts of a pixel. Otherwise, these are masks for the significant bits of the red, green and blue elements in the palette. For instance, most SVGA displays use 64 intensities of red, green and blue, so the masks should all be set to 0xfc.

◆ aspectx

int _D3DRMIMAGE::aspectx

◆ aspecty

int _D3DRMIMAGE::aspecty

aspect ratio for non-square pixels

◆ blue_mask

unsigned long _D3DRMIMAGE::blue_mask

◆ buffer1

void* _D3DRMIMAGE::buffer1

memory to render into (first buffer).

◆ buffer2

void* _D3DRMIMAGE::buffer2

second rendering buffer for double buffering, set to NULL for single buffering.

◆ bytes_per_line

int _D3DRMIMAGE::bytes_per_line

number of bytes of memory for a scanline. This must be a multiple of 4.

◆ depth

int _D3DRMIMAGE::depth

bits per pixel

◆ green_mask

unsigned long _D3DRMIMAGE::green_mask

◆ height

int _D3DRMIMAGE::height

width and height in pixels

◆ palette

D3DRMPALETTEENTRY* _D3DRMIMAGE::palette

description of the palette (only if rgb is false). Must be (1<<depth) elements.

◆ palette_size

int _D3DRMIMAGE::palette_size

number of entries in palette

◆ red_mask

unsigned long _D3DRMIMAGE::red_mask

◆ rgb

int _D3DRMIMAGE::rgb

if false, pixels are indices into a palette otherwise, pixels encode RGB values.

◆ width

int _D3DRMIMAGE::width

The documentation for this struct was generated from the following file: