You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
914 B
36 lines
914 B
//----------------------------------------------------------------------------
|
|
//
|
|
// rgbmap.h
|
|
//
|
|
// Structures and prototypes for rgb colormap code.
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef _RGBMAP_H_
|
|
#define _RGBMAP_H_
|
|
|
|
#include "colall.h"
|
|
|
|
typedef struct _RLDDIRGBMap {
|
|
unsigned long red_mask;
|
|
unsigned long green_mask;
|
|
unsigned long blue_mask;
|
|
|
|
int red_shift;
|
|
int green_shift;
|
|
int blue_shift;
|
|
|
|
/*
|
|
* A color allocator for use with RLDDIColormap.
|
|
*/
|
|
RLDDIColorAllocator alloc;
|
|
} RLDDIRGBMap;
|
|
|
|
RLDDIRGBMap* RLDDICreateRGBMap(unsigned long red_mask,
|
|
unsigned long green_mask,
|
|
unsigned long blue_mask);
|
|
void RLDDIDestroyRGBMap(RLDDIRGBMap* rgbmap);
|
|
|
|
#endif // _RGBMAP_H_
|