Delphi与DirectX之DelphiX(2):DelphiX各单元概览

DXClass | DXDraws | DIB | DXSounds | DXWave | DXPlay | DXSprite | DXInput

DXClass 单元

TControlSubClass
TControlSubClassProc
TCustomDXTimer
TDirectX
TDirectXDriver
TDirectXDrivers
TDXForm
TDXPictureClip
TDXTimer
TDXTimerEvent
THashCollection
THashCollectionItem
TDblPoint
Min(Val1,Val2: Integer): Integer   
PointInRect(const Poin: TPoint; const Rect: TRect): Boolean
RectInRect(const Rect1,Rect2: TRect): Boolean
OverlapRect(const Rect1,Rect2: TRect): Boolean
WideRect(ALeft,ATop,AWidth,AHeight: Integer): TRect
InitCosinTable
Cos256(i: Integer): Double
Sin256(i: Integer): Double
ReleaseCom(out Com)
DXLoadLibrary(const FileName,FuncName: string): TFarProc
FreeLibList
MakeHashCode(const Str: string): Integer
Get2PointRange(a,b: TDblPoint): Double
GetARadFromB(A,B: TDblPoint): Double
Get256(dX,dY: Double): Double
GetPointFromRangeAndAngle(SP: TDblPoint; Range,Angle: Double): TDblPoint
In2DRowCol: T2DRowCol
Trans2DRowCol(x,y: double): T2DRowCol
Scale2DRowCol(x,y: double): T2DRowCol
Rotate2DRowCol(Theta: double): T2DRowCol
Multipl2DRowCol(A,B: T2DRowCol): T2DRowCol
RotateIntoX2DRowCol(x,y: double): T2DRowCol
ScaleAt2DRowCol(x,y,Sx,Sy: double): T2DRowCol
ReflectAcross2DRowCol(x,y,dx,dy: Double): T2DRowCol
RotateAround2DRowCol(x,y,Theta: Double): T2DRowCol
Apply2DVector(V: T2DVector; M: T2DRowCol): T2DVector
DblPoint(a,b: Double): TDblPoint
TruncDblPoint(DblPos: TDblPoint): TPoint
PointInCircl(PPos,CPos: TPoint; R: integer): Boolean
CircleInCirc(C1Pos,C2Pos: TPoint; R1,R2: Integer): Boolean
SegmentInCircle(SPos,EPos,CPos: TPoint; R: Integer): Boolean
Angle256(Angle: Single): Single
CheckNearAThanB(S,A,B: TDblPoint): Boolean
CircumCenter3Pt(const x1,y1,x2,y2,x3,y3: Single; outPx,Py: Singl): Boolean
Distance(const x1,y1,x2,y2: Double): Double
InCenter(const x1,y1,x2,y2,x3,y3: Double; outPx,Py: Double)
PointInTriangl(const Px,Py,x1,y1,x2,y2,x3,y3: Double): Boolean
Log(const Co,FName: string)
T2DRowCol
T2DVector
TCellRange
TControlSubClassProc
TDXTimerEvent
L_Curve = 0
R_Curve = 1
C_Add = 0
C_Dec = 1
PaletteMask = $02000000
CosinTable: array[0..255] of Double
LibList: TStringList
SetAppExStyleCount: Integer

时间: 2024-11-29 16:54:36

Delphi与DirectX之DelphiX(2):DelphiX各单元概览的相关文章

Delphi与DirectX之DelphiX(87): TDIB.DrawTransparent、DrawTranslucent、Dra

Delphi与DirectX之DelphiX(87): TDIB.DrawTransparent.DrawTranslucent.DrawAlpha(); TDIB.DrawTransparent: 按指定的透明色透明; TDIB.DrawTranslucent: 先按指定的透明色透明, 然后再半透明; DIB.DrawAlpha: 先按指定的透明色透明, 再按指定的透明度透明. 本例效果图: 代码文件: unit Unit1; interface uses Windows, Messages,

Delphi与DirectX之DelphiX(17):TPictureCollectionItem.PatternWidth、Patte

Delphi与DirectX之DelphiX(17):TPictureCollectionItem.PatternWidth.PatternHeight 本例效果图: 代码文件: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DXDraws, StdCtrls; type TForm1 = class(TForm) DXD

Delphi与DirectX之DelphiX(7)

Delphi与DirectX 之DelphiX(7): 给TDXImageList加载图片的最后方案 本例效果图: 代码文件: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DXDraws, StdCtrls; type TForm1 = class(TForm) DXDraw1: TDXDraw; DXImageList

Delphi与DirectX之DelphiX(6)

Delphi与DirectX之DelphiX(6): 让TDXImageList和常规VCL交互使用 本例测试了两个问题: 1.其他 VCL 加载的图片能否给 TDXImageList 使用; 2.TDXImageList 中的图片能否给其他 VCL 使用. 例子中先用 TPicture 加载了图片, 然后给 TDXImageList; 然后把图片绘制在了窗体上, 而非 TDXDraw 中. 继续了解点 TDXImageList: TDXImageList 控件只有两个属性: DXDraw 和

Delphi与DirectX学习专题

Delphi与DirectX之DelphiX(95): TDIB.x Delphi与DirectX之DelphiX(94): TDIB.DrawAdditive(); Delphi与DirectX之DelphiX(93): TDIB.DrawDarken(); Delphi与DirectX之DelphiX(92): TDIB.Draw3x3Matrix(); Delphi与DirectX之DelphiX(91): TDIB.DrawMono(); Delphi与DirectX之DelphiX(9

Delphi与DirectX之DelphiX(3):初识TDXDraw

在 DelphiX 中, 所能看到的一般都是画在 TDXDraw. TDXDraw 默认两个绘图表面: TDXDraw.Surface 和 TDXDraw.Primary; 一般先在后台(Surface)绘图, 然后再用 TDXDraw.Flip 命令切换前后台, 从而看到绘制效果. TDXDraw.Flip 会置换 Surface 和 Primary 两个对象, 所以我们尽可以只在 Surface 上绘图; 由于 DirectX 的工作机制, 让这个切换速度异常地快(只是切换一个指针), 从而

Delphi与DirectX之DelphiX(1):安装测试

测试 Demo 下载: files.cnblogs.com/del/DelphiX_1.rar (在 Delphi 2007 和 2009 下均编译通过) 其实按照这里(www.cnblogs.com/del/archive/2008/06/13/1219324.html)的介绍, 比下载来的快, 也不需要下载. DirectX, 微软很久的技术了; 从 Windows Vista 开始, DirectX 已经是微软操作系统的界面基础了. 在 Delphi 下使用 DirectX 比较流行的有下

Delphi与DirectX之DelphiX(24):TDirectDrawSurface.Blt()、BltFast();

这两个函数可不是一般的麻烦, 特别是Blt(); 暂时搞不彻底, 这是初步尝试的例子: 代码文件: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DXDraws, StdCtrls, DirectX; type TForm1 = class(TForm) DXDraw1: TDXDraw; Button1: TButton

Delphi与DirectX之DelphiX(8) 第一个简单动画

本例效果图(用 gif 动画演示, 无论如何也出不来 DirectX 的流畅效果): 代码文件: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DXDraws, StdCtrls, DXClass; type TForm1 = class(TForm) DXDraw1: TDXDraw; DXImageList1: TDX

Delphi与DirectX之DelphiX(91): TDIB.DrawMono();

本例效果图: 代码文件: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DIB, StdCtrls; type TForm1 = class(TForm) DXPaintBox1: TDXPaintBox; Button1: TButton; procedure Button1Click(Sender: TObject);