delphixsource_08

所属分类:游戏引擎
开发工具:Delphi
文件大小:450KB
下载次数:30
上传日期:2008-11-08 19:58:28
上 传 者onestar1
说明:  delphix 源码集 EXTEND UNIT DXDRAWS FROM DELPHIX PACK
(Set delphix source EXTEND UNIT DXDRAWS FROM DELPHIX PACK)

文件列表:
history.rtf (28632, 2008-05-06)
Source\Dcu100 (0, 2008-03-25)
Source\Dcu110 (0, 2008-03-25)
Source\Dcu30 (0, 2008-03-25)
Source\Dcu40 (0, 2008-03-25)
Source\Dcu50 (0, 2008-03-25)
Source\Dcu60 (0, 2008-03-25)
Source\Dcu70 (0, 2008-03-25)
Source\Dcu90 (0, 2008-03-25)
FFEffects\Diesel Engine.ffe (315, 2000-07-22)
FFEffects\Idling.ffe (172, 2000-07-22)
FFEffects\Landing.ffe (178, 2000-07-22)
FFEffects\Machine gun.ffe (320, 2000-07-22)
FFEffects (0, 2008-04-14)
Prototype (0, 2008-04-14)
Source\DelphiX.bdsproj (7971, 2008-03-28)
Source\Colli3DX.dcr (492, 1999-02-26)
Source\DelphiX.dcr (7076, 2008-02-20)
Source\DXDIBEffectEdit.dfm (7667, 2008-04-07)
Source\DXFFBEdit.dfm (7098, 2001-01-18)
Source\DXGlueItEdit.dfm (125715, 2008-03-28)
Source\DXGUIDEdit.dfm (782, 2001-01-18)
Source\DXInptEdit.dfm (3750, 2001-01-18)
Source\DXMapEdit.dfm (3533, 2008-04-07)
Source\DXMapEditProperties.dfm (2789, 2008-04-09)
Source\DXMidiEdit.dfm (2717, 2006-05-11)
Source\DxPathEdit.dfm (11516, 2008-04-07)
Source\DXPictEdit.dfm (3233, 2008-02-19)
Source\DXPlayFm.dfm (8442, 2007-07-11)
Source\DXSpriteEdit.dfm (4732, 2008-03-20)
Source\DXWaveEdit.dfm (3554, 2008-02-19)
Prototype\Unit1.dfm (902, 2005-06-09)
Source\DelphiX.dpk (2290, 2008-04-11)
Source\DelphiX100.dpk (1831, 2008-03-26)
Source\DelphiX110.dpk (1842, 2008-03-28)
Source\DelphiX30.dpk (977, 2008-03-06)
Source\DelphiX40.dpk (1785, 2008-01-05)
Source\DelphiX50.dpk (1807, 2008-01-05)
Source\DelphiX60.dpk (1820, 2008-04-11)
... ...

(******************************************************************************* EXTEND UNIT DXDRAWS FROM DELPHIX PACK * Copyright (c) 2004-2008 Jaro Benes * All Rights Reserved * Version 1.08 * 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. Sorry for any future errors but I first saw DelphiX in 17-3-2004 and DirectX began learn some month later. First work 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 * 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 not tested for two and more DXDraws on form. Sorry. * HISTORY 1.01 28.03.2005 JB. Fix bug in Restore image procedure, when is picture change under HW mode. 1.02 29.05.2005 Takanori Kawasaki Fix bug in TD2D.D2DFreeTextures memory leak. 1.03 03.06.2005 JB. Partially corrected transparent color area when display on 16 bit screen. +Added full support for Delphi3 (overrides removed, dynarray supplement). 1.04 11.06.2005 JB. Fix bug in bitmap mapping (8, 16, 32 bit) to DIB 24 bit. Fix bug in test transparent color from changed DIB. +Added D3D support for Draw() routine. 1.05 19.06.2005 JB. +Function for D3D Draw() conditional switch off/on added, because not work properly on some adapters (Draw() accelerated in DirectDrawSurface yet). Can be turn on please uncomment {$Define DrawHWAcc} in DelphiXcfg.inc ****************************************************************************** * 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 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.

近期下载者

相关文件


收藏者