Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / qdxscreen.html

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix B: QDXSCREEN
Rapid-Q Documentation by William Yu (c)1999 Appendix B: QDXSCREEN


QDXSCREEN Component

QDXScreen allows you to create a DirectX screen for all your DXComponents. All operations are done on the off-screen buffer, so nothing is displayed until you flip to it. To use full screen mode, set FullScreen to true, and make sure your form border style is bsNone.

QDXScreen Properties
FieldTypeR/WDefault




AlignINTEGERRWalNone
AllowStretchINTEGERRWTrue
AutoSizeINTEGERRWTrue
BitCountINTEGERRW8
ColorINTEGERRW
CursorINTEGERRWcrDefault
EnabledINTEGERRWTrue
FontQFONTW
FullScreenINTEGERRWFalse
HeightINTEGERRW
HintSTRINGRW
LeftINTEGERRW
ParentQFORM/QPANEL/QTABCONTROLW
Pixel2D ARRAY of INTEGERRW
ShowHintINTEGERRWFalse
TopINTEGERRW
Use3DINTEGERRWFalse
UseHardwareINTEGERRWTrue
VisibleINTEGERRWTrue
WidthINTEGERRW

QDXScreen Methods
MethodTypeDescriptionParams




CircleSUB (x1%, y1%, x2%, y2%, c%, fill%)Draw & Fill Circle6
CopyRectSUB (D, Image, S)D and S are QRECTs, Image can be a QImage, QCanvas, or QBitmap3
DrawSUB (x%, y%, BMP)Draw Bitmap at (X,Y)3
FillSUB (DevCol%)Fill screen (not traditional colors)1
FillRectSUB (x1%, y1%, x2%, y2%, c%)Draw & Fill a rectangle5
FlipSUBCopies off-screen buffer to visible page0
InitSUB (Width%, Height%)Create Screen2
LineSUB (x1%, y1%, x2%, y2%, c%)Draws a line5
PaintSUB (x%, y%, c%, borderc%)Fill Region4
PsetSUB (x%, y%, c%)Pixel Plot3
RectangleSUB (x1%, y1%, x2%, y2%, c%)Draws a rectangle5
ReleaseSUBForce update0
RotateSUB (xOrigin%, yOrigin%, Angle%)Rotates entire screen at specified origin3
RoundRectSUB (x1%, y1%, x2%, y2%, x3%, y3%, c%)Draws & Fills a rounded rectangle7
StretchDrawSUB (Rect AS QRECT, BMP)Draw BMP and stretch to fit inside Rect2
TextHeightFUNCTION (Text$) AS WORDReturns the height, in pixels, of Text$ string1
TextWidthFUNCTION (Text$) AS WORDReturns the width, in pixels, of Text$ string1
TextRectSUB (Rect AS QRECT, x%, y%, S$, fc%, bc%)Write text, and clip within region Rect6
TextOutSUB (x%, y%, S$, fc%, bc%)Writes text5
QDXScreen 3D Methods
MethodTypeDescriptionParams




AddLightSUB (Light AS QD3DLight)Add light to scene1
CameraLookAtSUB (F AS QD3DFrame, Constraint AS INTEGER)Fix frame and constrain rotation2
CreateFaceSUB (Face AS QD3DFace)Creates a face1
CreateFrameSUB (Frame AS QD3DFrame)Creates frame1
CreateLightRGBSUB (LightType%, R#, G#, B#, Light AS QD3DLight)Create light object5
CreateMeshBuilderSUB (MB AS QD3DMeshBuilder)Creates meshbuilder1
CreateShadowSUB (MB AS QD3DMeshBuilder, Light AS QD3DLight, px#, py#, pz#, nx#, ny#, nz#, V AS QD3DVisual)Creates a visual shadow object9
CreateWrapSUB (WrapType%, A#, B#, C#, D#, E#, F#, G#, H#, I#, J#, K#, L#, M#, W AS QD3DWrap)Creates a wrap object15
ForceUpdateSUB (X1%, Y1%, X2%, Y2%)Force update on specific region4
LoadTextureSUB (File AS STRING, Tex AS QD3DTexture)Create a texture object2
MoveSUB (D AS DOUBLE)Moves/animates scene1
SetBackgroundImageSUB (Tex AS QD3DTexture)Set background image for scene1
SetCameraPositionSUB (X#, Y#, Z#)Set camera position for entire scene3
SetCameraOrientationSUB (DX#, DY#, DZ#, UX#, UY#, UZ#)Set camera orientation for scene6
SetRenderModeSUB (M AS INTEGER)Set render mode for scene1
SetTextureQualitySUB (Quality AS INTEGER)Set texture quality for scene1

QDXScreen Events
EventTypeOccurs when...Params




OnClickVOIDMouse button clicked0
OnDblClickVOIDMouse button double clicked0
OnInitializeVOIDDirectX succeeds in initializing0
OnInitializeSurfaceVOIDAnother event for you to do initializing0
OnKeyDownSUB (Key AS Word, Shift AS INTEGER)Key held down2
OnKeyPressSUB (Key AS BYTE)User presses a key1
OnMouseDownSUB (Button%, X%, Y%)Mouse button held down3
OnMouseMoveSUB (X%, Y%)Mouse moves2
OnMouseUpSUB (Button%, X%, Y%)Mouse button is released3


QDXScreen Examples
$APPTYPE GUI
$TYPECHECK ON
$INCLUDE "RAPIDQ.INC"

DIM Form AS QForm
    Form.ClientHeight = 480
    Form.ClientWidth = 640
DIM Screen AS QDXScreen

Screen.Parent = Form
Screen.Init(640, 480)
Screen.Align = alClient

Form.ShowModal

Prev Component Contents Next Component
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2017-12-13  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:34