//
// OPC GLperf ReadPixl.ndx script (version 0.3)
//

(FileName "ReadPixl.ndx 0.3")

//
// This script will generate data for the following bar chart:
//  * ReadPixels (color index, ubyte)
// 
// All tests are run in Immediate Mode.
// In each case above, the width and height of the ReadPixels
// image (ImageWidth, ImageHeight) will be incremented from
// 16 to 512, stepping by powers of 2. (16, 32, 64, 128, 256, 512)

// Put all your "discretionary" global property definitions here.
// These are the following properties:
//
/*
AccumAlphaSize
AccumBlueSize
AccumGreenSize
AccumRedSize
AlphaSize
AuxBuffers
BlueSize
ClearColor
DataAlignment
DepthSize
DirectRender
DoubleBuffer
DrawBuffer
GreenSize
IndexSize
LoopFuncPtrs
LoopUnroll
RedSize
StencilSize
Stereo
VisualClass
VisualId
*/
//
// For example:
// (LoopUnroll 8)
// (LoopFuncPtrs True)

// 
// These are all the "default" values for this script that will
// remain constant unless otherwise specified in a particular test.

(AcceptObjs		1.0)
(AlphaBias		0.0)
(AlphaRef		0.0)
(AlphaScale		1.0)
(AlphaTest		Off)
(Antialias		Off)
(Aspect			1.0)
(AtoAMapSize		1)
(Blend			Off)
(BlueBias		0.0)
(BlueScale		1.0)
(BtoBMapSize		1)
(CharFont		f9x15)
(CharsPerString		16)
(ClearAccumBuffer	False)
(ClearColor		White)
(ClearColorBuffer	True)
(ClearDepthBuffer	False)
(ClearIndex		0.0)
(ClearStencilBuffer	False)
(ClipAmount		.5)
(ClipMode		Random)
(ClipObjs		0.0)
(ColorData		None)
(ColorDim		3)
(ColorMask		TTTT)
(ColorMaterialMode	GL_AMBIENT_AND_DIFFUSE)
(ColorMaterialSide	GL_FRONT)
(CopyPixelsType		GL_COLOR)
(CullFace		Off)
(DataAlignment		0)
(DepthBias		0.0)
(DepthMask		On)
(DepthOrder		BackToFront)
(DepthScale		1.0)
(DepthTest		Off)
(DirectRender		True)
(Dither			Off)
(DrawBuffer		GL_FRONT)
(DrawOrder		Spaced)
(DrawableType		WindowDraw)
(DstBlendFunc		GL_ONE)
(ExecuteMode		Immediate)
(FacingBack		0.0)
(FacingFront		1.0)
(Fog			Off)
(GreenBias		0.0)
(GreenScale		1.0)
(GtoGMapSize		1)
(ImageAlignment		4)
(ImageFormat		GL_RGBA)
(ImageLSBFirst		False)
(ImageSwapBytes		False)
(ImageType		GL_UNSIGNED_BYTE)
(IndexMask		4095)
(IndexOffset		0)
(IndexShift		0)
(InfiniteLights		0)
(ItoAMapSize		1)
(ItoBMapSize		1)
(ItoGMapSize		1)
(ItoIMapSize		1)
(ItoRMapSize		1)
(LineStipple		Off)
(LineWidth		1.0)
(LocalLights		0)
(LocalViewer		Off)
(LogicOp		Off)
(LoopFuncPtrs		False)
(LoopUnroll		1)
(MapColor		Off)
(MapStencil		Off)
(MinimumTime		5)
(NormalData		None)
(Objs			1)
(ObjsPerBeginEnd	1)
(Orientation		Random)
(PixelZoomX		1.0)
(PixelZoomY		1.0)
(PointDraw		Off)
(PolygonModeBack	GL_FILL)
(PolygonModeFront	GL_FILL)
(PolygonSides		4)
(PolygonStipple		Off)
(PrintModeDelta		Off)
(PrintModeMicrosec	Off)
(PrintModePixels	On)
(PrintModeStateDelta	Off)
(Projection		Perspective)
(RasterPosDim		2)
(ReadBuffer		GL_FRONT)
(ReadOrder		Spaced)
(RedBias		0.0)
(RedScale		1.0)
(RejectObjs		0.0)
(RenderMode		GL_RENDER)
(Reps			1)
(Rgba			False)
(RtoRMapSize		1)
(Scissor		Off)
(ShadeModel		GL_SMOOTH)
(Shininess		10.0)
(Size			10.0)
(SpecularComponent	On)
(SrcBlendFunc		GL_ONE)
(StencilTest		Off)
(StoSMapSize		1)
(TexBorder		0)
(TexComps		3)
(TexData		None)
(TexFunc		GL_DECAL)
(TexGen			Off)
(TexHeight		64)
(TexImageBorder		0)
(TexImageComps		3)
(TexImageLevel		0)
(TexImageMipmap		None)
(TexImageSrc		SystemMemory)
(TexImageTarget		GL_TEXTURE_2D)
(TexLOD			0.0)
(TexMagFilter		GL_NEAREST)
(TexMinFilter		GL_NEAREST)
(TexTarget		Off)
(TexWidth		64)
(TexWrapS		GL_REPEAT)
(TexWrapT		GL_REPEAT)
(TransformType		Rotate)
(TwistsPerStrip		0)
(TwoSided		Off)
(VertexDim		3)
(WindowHeight		600)
(WindowWidth		600)

//
// Pixel Read Tests
//

ReadPixelsTest {
    (UserString printf("ReadPixels (Immediate, color index, ubyte, %dx%d)", 
                       ImageWidth, ImageHeight))
    (ImageFormat GL_COLOR_INDEX)
    (ImageType GL_UNSIGNED_BYTE)
    ([ImageWidth ImageHeight] from 16 to 512 step 100%)
}
