(*******************************************************************************
EXTEND UNIT DXDRAWS FROM DELPHIX PACK
* Copyright (c) 2004-2020 Jaro Benes
* All Rights Reserved
* Version 1.20.x
* D2D Hardware module
* web site: www.micrel.cz/Dx
* e-mail: delphix_d2d@micrel.cz
* DISCLAIMER:
This software is provided "as is" and is without warranty of any kind.
The author of this software does not warrant, guarantee or make any
representations regarding the use or results of use of this software
in terms of reliability, accuracy or fitness for purpose. You assume
the entire risk of direct or indirect, consequential or inconsequential
results from the correct or incorrect usage of this software even if the
author has been informed of the possibilities of such damage. Neither
the author nor anybody connected to this software in any way can assume
any responsibility.
First works started at 13.9.2004.
All units in this pack contain last changes and was added very interesting
units (for study or inspiration)
Tested in Delphi 4,5,6,7 and Delphi 2005/2006/Turbo/2007/2009/2010/XE/XE2/XE3/XE4/XE5/XE6/XE7/XE8/Seattle/Berlin/Tokyo/Rio/Sydney
Note: Support is weak for package lower than Delphi 2006.
* FEATURES:
a) Implement Hardware acceleration for critical function like DrawAlpha {Blend},
DrawSub and DrawAdd for both way DXIMAGELIST and DIRECTDRAWSURFACE with rotation too.
b) Automatic adjustement for texture size different 2^n.
c) Minimum current source code change, all accelerated code added into:
DXDraw.BeginScene;
//code here
DXDraw.EndScene;
d) DelphiX facade continues using still.
* HOW TO USE
a) Design code like as DelphiX and drawing routine put into
DXDraw.BeginScene;
//code here
DXDraw.EndScene;
b) setup options in code or property for turn-on acceleration like:
DXDraw.Finalize; {done DXDraw}
If HardwareSwitch Then
{hardware}
Begin
if NOT (doDirectX7Mode in DXDraw.Options) then
DXDraw.Options := DXDraw.Options + [doDirectX7Mode];
if NOT (doHardware in DXDraw.Options) then
DXDraw.Options := DXDraw.Options + [doHardware];
if NOT (do3D in DXDraw.Options) then
DXDraw.Options := DXDraw.Options + [do3D];
if doSystemMemory in DXDraw.Options then
DXDraw.Options := DXDraw.Options - [doSystemMemory];
End
Else
{software}
Begin
if doDirectX7Mode in DXDraw.Options then
DXDraw.Options := DXDraw.Options - [doDirectX7Mode];
if do3D in DXDraw.Options then
DXDraw.Options := DXDraw.Options - [do3D];
if doHardware in DXDraw.Options then
DXDraw.Options := DXDraw.Options - [doHardware];
if NOT (doSystemMemory in DXDraw.Options) then
DXDraw.Options := DXDraw.Options + [doSystemMemory];
End;
{to fullscreen}
if doFullScreen in DXDraw.Options then
begin
RestoreWindow;
DXDraw.Cursor := crDefault;
BorderStyle := bsSingle;
DXDraw.Options := DXDraw.Options - [doFullScreen];
DXDraw.Options := DXDraw.Options + [doFlip];
end else
begin
StoreWindow;
DXDraw.Cursor := crNone;
BorderStyle := bsNone;
DXDraw.Options := DXDraw.Options + [doFullScreen];
DXDraw.Options := DXDraw.Options - [doFlip];
end;
DXDraw1.Initialize; {up DXDraw now}
* NOTE Main form has to declare like:
TForm1 = class(TDXForm)
* KNOWN BUGS OR RESTRICTION:
1/ Cannot be use DirectDrawSurface other from DXDraw.Surface in HW mode.
2/ New functions was newer tested for two and more DXDraws on form. Sorry.
* HISTORY
**** please see into history.rtf document ****
******************************************************************************
* PACK NOTE for (un)DelphiX pack recompilation with hardware acceleration
For simple application start can be use the prototype application in this pack
* PACK HISTORY________________________________________________________________
15.06.2020 JB
+ Support Delphi 10.4 Sydney added and some conditional revided.
04.12.2018 JB
+ Support Delphi 10.3 Rio added and some conditional revided.
19.11.2017 JB
+ Support Delphi 10.2 Tokyo added.
27.4.2016 JB
+ Support Delphi 10.1 Berlin added and some conditional revided.
10.12.2015 JB
+ Support Delphi 10 Seattle added and some conditional revided.
10.4.2015 JB
+ Support Delphi XE8 added and some conditional revided.
04.9.2014 JB
+ Support Delphi XE7 added and some conditional revided.
02.5.2014 JB
+ Support Delphi XE6 added and some conditional revided.
20.9.2013 JB
+ Support Delphi XE5 added and some conditional revided.
06.5.2013 JB
+ Support Delphi XE4 added and some conditional revided.
04.9.2012 JB
+ Support Delphi XE3 added and some conditional revided.
01.9.2011 JB
+ Support Delphi XE2 added and some conditional revided.
02.9.2010 JB
+ Support Delphi XE added.
17.5.2010 JB.
- DXCommon unit remove from pack (only special purpose use in build-in DirectX.pas pack) for incompatibility with other products.
+ Added layer texture support (for future use to render image in image).
+ Clean interfaces (better support DX 7, but RM mode requires old interfaces still).
+ Better compatibility for PURE Delphi 2010 (DirectX headers are use from Delphi 2010 primary).
+ Isolate all Hori's code (code can be removed and all will be run througt DirectX).
+ Small bugs repaired.
02.11.2009
+ Support Delphi 2010 added
28.02.2009
* Pack recompiled under Delphi 3,4,5,6,7,2005,2006,2007,2009 for conditionals change and Delphi 2009 bug fix.
07.04.2008 JB.
+ Main enhacement relelased, overwritten in the history document
09.06.2005 JB.
+ Better compatibility with Delphi 4.
+ Some .dpk files revised, installation for all the same.
+ added the DXMisc.pas file contain some useful functions.
+ DXSprite.pas file revised for support under Delphi 3;
Under Delphi 3 cannot be use colli3DX.pas, isn't adapt still, sorry.
12.06.2005 JB.
+ Improvement of hardware acceleration and fix-bug.
19.06.2005 JB.
+ Fix-bug in Draw() function.
23.10.2005 JB.
+ DXSpriteEngine improvement
Isn't necessary derive classes sprite, it is possible use DrawAdd, DrawAlpha and DrawSub also for BackgroundSprite.
New proposal sprite from editor, sorting into the collection (likewise as with DXImageList or DXWaveList), generation Events.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
DirectX 简介 DirectX 对于大多数游戏爱好者来说都不陌生(当然,那些只在DOS下艰苦作战的朋友例外),在安装一个游戏前,系统总是会提示你是否需要同时升级 DirectX。简单地说,DirectX 就是一系列的 DLL (动态连接库),通过这些 DLL,开发者可以在无视于设备差异的情况下访问底层的硬件。DirectX 封装了一些 COM(Component Object Model)对象,这些 COM 对象为访问系统硬件提供了一个主要的接口。DirectX 目前主要由以下七个主要部分组成:DirectDraw – 为程序直接访问显存提供接口,同时和其它的Windows应用程序保持兼容。 Direct3D – 为访问3D加速设备提供接口。 DirectInput – 为各种输入设备提供接口,比如鼠标,键盘,力反馈游戏手柄和操纵杆等。 DirectPlay – 为游戏提供网络功能接口,比如支持通过 TCP/I、IPX 等协议进行游戏中的数据传输。 Dire 2022-08-25
资源详情
资源评论
资源推荐
收起资源包目录
DirectX delphix_all_in_one_Alexandria delphi11.2 (709个子文件)
DXGraphics_Demos.bdsgroup 2KB
D3DIM_DEMOS.bdsgroup 845B
DXInput_Demos.bdsgroup 808B
DXSound_Demos.bdsgroup 793B
D3DRM_DEMOS.bdsgroup 740B
DXSprites_Demo.bdsgroup 627B
Network_Demos.bdsgroup 612B
DisplayModeChangerSample.bdsproj 8KB
DynamicImageListSample.bdsproj 8KB
RegisterNotifySample.bdsproj 8KB
VideoTextureSample.bdsproj 8KB
AlphaBlendSample.bdsproj 8KB
BasicDRMSample.bdsproj 8KB
ImageListSample.bdsproj 8KB
TestDIBEffects.bdsproj 8KB
TextureSample.bdsproj 8KB
SurfaceSample.bdsproj 8KB
Sample.bdsproj 8KB
BasicSample.bdsproj 8KB
PaletteAnim.bdsproj 8KB
SimpleInput.bdsproj 8KB
BasicSample.bdsproj 8KB
GCSample.bdsproj 8KB
SCapture.bdsproj 8KB
DIEffect2.bdsproj 8KB
HDRecder.bdsproj 8KB
DIEffect.bdsproj 8KB
Sprite1.bdsproj 8KB
Sprite1.bdsproj 8KB
Sample.bdsproj 8KB
Sample.bdsproj 8KB
Sample.bdsproj 8KB
AStream.bdsproj 8KB
Chat.bdsproj 8KB
Chat.bdsproj 8KB
DelphiX.bdsproj 8KB
DelphiX100.bdsproj 8KB
TBRICK.BMP 257KB
rt.bmp 192KB
GRASS3A.BMP 129KB
imagelisticons.bmp 87KB
Sample_Fonts.bmp 80KB
Font.bmp 75KB
seafloor.bmp 65KB
HEIGHT.BMP 65KB
GROUND.BMP 65KB
rt-alpha.bmp 65KB
S_AVE148.BMP 65KB
S_RK53.BMP 65KB
W_STONE.BMP 65KB
WALL_1.BMP 65KB
image.bmp 59KB
font.0000.bmp 39KB
back.bmp 32KB
back.bmp 17KB
lake.bmp 17KB
lake.bmp 17KB
dolphin.bmp 12KB
pine.bmp 6KB
icons.bmp 5KB
text.bmp 4KB
font.bmp 4KB
leftp.bmp 3KB
righttwst.bmp 3KB
isoblank.bmp 3KB
rightp.bmp 3KB
lefttwst.bmp 3KB
leftdoor.bmp 2KB
rightdor.bmp 2KB
Bubbles.bmp 2KB
plant.bmp 2KB
lefts.bmp 2KB
rights.bmp 2KB
middles.bmp 2KB
water1.bmp 2KB
brown.bmp 2KB
water.bmp 2KB
grass.bmp 2KB
cursor.bmp 2KB
dirtpath.bmp 2KB
gray.bmp 2KB
redBall.bmp 1KB
whiteball.bmp 1KB
hauto.bmp 1KB
guma.bmp 376B
start.cmd 154B
DelphiX.cnt 3KB
DelphiX.dcr 7KB
SXReg.dcr 1KB
Colli3DX.dcr 492B
DXDraws.dcu 568KB
DirectX.dcu 525KB
DIB.dcu 265KB
DShow.dcu 230KB
DXRender.dcu 132KB
DXSounds.dcu 122KB
DXSprite.dcu 102KB
D3DUtils.dcu 82KB
DXGlueItEdit.dcu 80KB
DXInput.dcu 74KB
共 709 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
稻丶草人
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0