文件名称:ATL写的基于DirectX的游戏引擎
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 249kb
- 下载次数:
- 0次
- 提 供 者:
- da***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
软件简介:
学着ATL,又在学DirectX,突发灵感,为何不用ATL写一个游戏引擎?!!!
呜呼,心血澎湃,于是开始写。
/////////////////////////////////////////////////
设计原则:
提供功能性代码,相当于简化DirectX功能接口,使之更方便使用。
不提供游戏上层的逻辑关系组织。
如果将来用它来写游戏,游戏的数据、逻辑关系,都需要游戏程序里建立、保存。
/////////////////////////////////////////////////
为何用ATL来写?
本想用DLL来封装,但是DLL的接口是函数,面太宽,一者不方便使用,再说了,写代码也麻烦。
ATL可以用接口号,比如DirectDraw用一个接口,DirectSound用一个接口....
/////////////////////////////////////////////////
为何不用MFC的COM来写?
麻烦。
那些底层的AddRef,Release都得自己来写,太麻烦了。
/////////////////////////////////////////////////
现在刚开始写。先写DirectDraw部分。
写了一点点,但是这部分的框架已经出来了。
/////////////////////////////////////////////////
大家自己注册一下吧,或者重编一下程序。
我用的是DirectX7.0版本。
-software brief : ATL learn, in school DirectX and sudden inspiration, why not write an ATL game engine? ! ! ! Alas, the efforts of emotion and began to write. ///////////////////////////////////////////////// Design the principle : to provide functional code, which is equivalent to simplify DirectX functional interface to make it more user friendly. No game on the upper logical organization. If it is used to write games, games of the data, logic, games need to establish procedures to preserve. Why use ///////////////////////////////////////////////// ATL to write? To use the DLL to package, but the interface is the DLL function, too much width, a person inconvenient to use, say, write code in trouble. ATL interfaces can be used, such as an interface with DirectDraw, with a DirectSound inte
(系统自动生成,下载前可以参看下载内容)
下载文件列表
10_vc8154246624
...............\FreeDirectX
...............\...........\dlldata.c
...............\...........\ExportFreeDirectX.h
...............\...........\FreeDirectDraw.cpp
...............\...........\FreeDirectDraw.h
...............\...........\FreeDirectDraw.rgs
...............\...........\FreeDirectDrawDataStruct.h
...............\...........\FreeDirectDrawDef.h
...............\...........\FreeDirectX.aps
...............\...........\FreeDirectX.cpp
...............\...........\FreeDirectX.def
...............\...........\FreeDirectX.dsp
...............\...........\FreeDirectX.dsw
...............\...........\FreeDirectX.h
...............\...........\FreeDirectX.idl
...............\...........\FreeDirectX.ncb
...............\...........\FreeDirectX.opt
...............\...........\FreeDirectX.plg
...............\...........\FreeDirectX.rc
...............\...........\FreeDirectX.tlb
...............\...........\FreeDirectXps.def
...............\...........\FreeDirectXps.mk
...............\...........\FreeDirectX_i.c
...............\...........\FreeDirectX_p.c
...............\...........\ImportDirectX.h
...............\...........\Ini.cpp
...............\...........\Ini.h
...............\...........\Log.cpp
...............\...........\Log.h
...............\...........\resource.h
...............\...........\StdAfx.cpp
...............\...........\StdAfx.h
...............\...........\Tools.cpp
...............\...........\Tools.h
...............\...........\复件 FreeDirectDraw.cpp
...............\...........\复件 FreeDirectDraw.h
...............\...........\新建 文本文档.txt
...............\Game
...............\....\Game.cpp
...............\....\Game.dsp
...............\....\Game.dsw
...............\....\Game.h
...............\....\Game.opt
...............\....\Game.plg
...............\GameEngineATL
...............\.............\dlldata.c
...............\.............\FreeDraw.cpp
...............\.............\FreeDraw.h
...............\.............\FreeDraw.rgs
...............\.............\FreeDrawDef.h
...............\.............\GameEngineATL.aps
...............\.............\GameEngineATL.cpp
...............\.............\GameEngineATL.def
...............\.............\GameEngineATL.dsp
...............\.............\GameEngineATL.dsw
...............\.............\GameEngineATL.h
...............\.............\GameEngineATL.idl
...............\.............\GameEngineATL.ncb
...............\.............\GameEngineATL.opt
...............\.............\GameEngineATL.plg
...............\.............\GameEngineATL.rc
...............\.............\GameEngineATL.tlb
...............\.............\GameEngineATLps.def
...............\.............\GameEngineATLps.mk
...............\.............\GameEngineATL_i.c
...............\.............\GameEngineATL_p.c
...............\.............\ImportDirectX.h
...............\.............\Ini.cpp
...............\.............\Ini.h
...............\.............\Log.cpp
...............\.............\Log.h
...............\.............\resource.h
...............\.............\StdAfx.cpp
...............\.............\StdAfx.h
...............\.............\Tools.cpp
...............\.............\Tools.h
...............\Lib
...............\...\DirectDraw.log
...............\...\FreeDirect.ini
...............\...\FreeDirectX.dll
...............\...\Game.exe
...............\说明.txt
说明.txt
...............\FreeDirectX
...............\...........\dlldata.c
...............\...........\ExportFreeDirectX.h
...............\...........\FreeDirectDraw.cpp
...............\...........\FreeDirectDraw.h
...............\...........\FreeDirectDraw.rgs
...............\...........\FreeDirectDrawDataStruct.h
...............\...........\FreeDirectDrawDef.h
...............\...........\FreeDirectX.aps
...............\...........\FreeDirectX.cpp
...............\...........\FreeDirectX.def
...............\...........\FreeDirectX.dsp
...............\...........\FreeDirectX.dsw
...............\...........\FreeDirectX.h
...............\...........\FreeDirectX.idl
...............\...........\FreeDirectX.ncb
...............\...........\FreeDirectX.opt
...............\...........\FreeDirectX.plg
...............\...........\FreeDirectX.rc
...............\...........\FreeDirectX.tlb
...............\...........\FreeDirectXps.def
...............\...........\FreeDirectXps.mk
...............\...........\FreeDirectX_i.c
...............\...........\FreeDirectX_p.c
...............\...........\ImportDirectX.h
...............\...........\Ini.cpp
...............\...........\Ini.h
...............\...........\Log.cpp
...............\...........\Log.h
...............\...........\resource.h
...............\...........\StdAfx.cpp
...............\...........\StdAfx.h
...............\...........\Tools.cpp
...............\...........\Tools.h
...............\...........\复件 FreeDirectDraw.cpp
...............\...........\复件 FreeDirectDraw.h
...............\...........\新建 文本文档.txt
...............\Game
...............\....\Game.cpp
...............\....\Game.dsp
...............\....\Game.dsw
...............\....\Game.h
...............\....\Game.opt
...............\....\Game.plg
...............\GameEngineATL
...............\.............\dlldata.c
...............\.............\FreeDraw.cpp
...............\.............\FreeDraw.h
...............\.............\FreeDraw.rgs
...............\.............\FreeDrawDef.h
...............\.............\GameEngineATL.aps
...............\.............\GameEngineATL.cpp
...............\.............\GameEngineATL.def
...............\.............\GameEngineATL.dsp
...............\.............\GameEngineATL.dsw
...............\.............\GameEngineATL.h
...............\.............\GameEngineATL.idl
...............\.............\GameEngineATL.ncb
...............\.............\GameEngineATL.opt
...............\.............\GameEngineATL.plg
...............\.............\GameEngineATL.rc
...............\.............\GameEngineATL.tlb
...............\.............\GameEngineATLps.def
...............\.............\GameEngineATLps.mk
...............\.............\GameEngineATL_i.c
...............\.............\GameEngineATL_p.c
...............\.............\ImportDirectX.h
...............\.............\Ini.cpp
...............\.............\Ini.h
...............\.............\Log.cpp
...............\.............\Log.h
...............\.............\resource.h
...............\.............\StdAfx.cpp
...............\.............\StdAfx.h
...............\.............\Tools.cpp
...............\.............\Tools.h
...............\Lib
...............\...\DirectDraw.log
...............\...\FreeDirect.ini
...............\...\FreeDirectX.dll
...............\...\Game.exe
...............\说明.txt
说明.txt