Class Hierarchy   Compound List   Compound Members   Related Pages  

NativeDisplayTester Class Reference

#include <display.h>

List of all members.

Public Members

 NativeDisplayTester ()
 ~NativeDisplayTester ()
void TestDepth ( int depth )
int BestDetectedFormat ()
BOOL BestDetectedInvert ()

Static Public Members

int CurrentScreenBitDepth ()
U32 CurrentScreenColors ()


Detailed Description

NativeDisplayTester: 1) queries the current screen bit depth, 2) queries the current screen color count, and 3) tests the display for the best format for a given depth.

Member Function Documentation

void NativeDisplayTester::TestDepth (int depth)

Given the depth, computes the best PixelFormat. BestDetectedFormat and BestDetectedInvert should be valid after this call. Example: given a bit depth of 16, this could determine whether to use pix16A or pix16. For format choices, see the PixelFormat structure.

int NativeDisplayTester::BestDetectedFormat ()

The PixelFormat, valid after a call to TestDepth.

BOOL NativeDisplayTester::BestDetectedInvert ()

"invert" refers to the orientation of display memory relative to the screen. If you display is drawn upside down, change this value.

int NativeDisplayTester::CurrentScreenBitDepth () [static]

CurrentScreenBitDepth returns the current depth of the display.

U32 NativeDisplayTester::CurrentScreenColors () [static]

The number of colors the screen can display.


The documentation for this classwas generated from the following file:

Version 1.0 of the Flash 4 Porting SDK                        Middlesoft, Inc.