|
Donuts3D DirectX SDK 8.1 Delphi 6-7
===============================================
Donuts3D ( 13.07.2007)
===============================================
Delphi 6-7: ..
: 15.07.2007
Donuts3D DirectX
SDK 8.1 ( C++) Delphi 6-7
.
Delphi DirectX 8.1.
-
Delphi 6, 7 ,
MSVS 7, 2003
*.res;
-
Windows 98SE/2000/XP sp2
DirectX 8.1 ;
-
Pentium II 300 z , RAM
32 Mb , 4-8 Mb Video RAM , DirectX- ,
.
-
DirectX SDK 8.1 ( DirectX);
-
, .
-
Delphi 6-7, WinAPI VCL,
- *.res MSVS 7, 2003 .
-
Delphi 6-7 ( Direct3D8.pas, D3DX8, DirectInput8,
DirectSound8, DirectMusic8, D3D Utils, SXModPlayer2 ..);
-
, (DX8_DIUtil8.pas);
-
3D- 3 : , , ;
-
(DMUtil.pas);
-
- / EXE-;
-
2D , 3D- (
billboarding);
-
WinAPI, ,
4 , 11 , , ,
.
:
-
, C++ DX SDK Delphi;
-
, Delphi
DirectX 8.1;
-
(
). |
|
|
-
: ?
C++, - ?
. -, DirectX
( ),
, DirectX DirectX-
- C++ .
MSVS (Microsoft Visual Studio).
, , C++ Builder Delphi Borland.
, , ,
.
- . ,
, Delphi. ++
, ! ,
C++ MSVS! -, - ,
Delphi... !
DirectX COM-
DirectX. ,
Delphi. , , C++
Delphi.
, Delphi DirectX.
DirectX . ,
- DirectX 8.1 DirectX9,
DirectX9c. DirectX10, Windows
Vista.
Delphi. OpenGL... , ,
OpenGL. .
Delphi - Delphi 9, Delphi 2005 ...
.
- , ,
Delphi 6 - 7 DirectX 8.1 Donuts3D. DirectX
, , ( ++
Delphi), WinAPI
, MFC, VCL. MFC ( ++)
VCL ( Delphi) , , -
. WinAPI
, .. DirectX COM-, COM - WinAPI
... Delphi. Delphi VCL COM - .. Component
Object Model.
WinAPI
Delphi 6-7;
-
File > New > Application
..
WinAPI ( VCL),
, Delphi -
Project > Remove from Project
Unit1 .
Remove ... ? Yes.
(- Project1.dpr)
. Ctrl+F12
Project1.
View > Units.
- File > Save Project
As , , Donuts3D,
.
MSVS C++
, - donuts.res
Delphi
,
Donuts3D.dpr
-
---------------------
uses
Windows,
donutsU in 'donutsU.pas';
{$R
donuts.res}
var
hPrevInst: LongWord;
begin
hPrevInst := 0;
{$WARN SYMBOL_PLATFORM OFF}
ExitCode := WinMain(HInstance, hPrevInst, CmdLine, CmdShow);
{$WARN SYMBOL_PLATFORM ON}
end.
-----------------------
donutsU - , File > New
> Unit
donutsU.pas Delphi- Donuts3D
.
, common
2
, Donuts3D, .. Donuts3D
-
..\..\common
..\..\common\Borland_D6-7
, -
Project > Options > Directories/Conditionals > Search Path >
... Add.
Delphi ( ),
,
- - .
,
.
- File > Save All.
donutsU.pas,
,
uses donutsU.pas
.
,
. |
|
|
. WinMain - ,
. ,
, , ,
WinMain. *.dpr
(. ). , WinMain
- .
Create_
- ;
OneTimeSceneInit
- , ,
DirectX- - CreateInputObjects (
IDirectInput), CreateSoundObjects (
, ), CreateDisplayObjects (
Direct3D-, , ), ConstructMenus
( Donuts3D ,
), AsAppState_LoadSplash
- , Donuts3D,
OneTimeSceneInit (
).
WndProc
- . ,
.. , ,
,
.
- MsgProc. WndProc -
WinAPI-,
(). -
. ,
, ,
. DirectX-
WinAPI-, ,
Idle Time (..
) - -
- 3D-,
( ).
Run Donuts3D.
Run
- .
.
Idle Time ( - )
FrameMove Render
.
- . Run. |
|