项目学习:TetroGL/CodeProject
文章平均质量分 79
s110600824s
这个作者很懒,什么都没留下…
展开
-
TetroGL说明
本专题来自CodeProject 的TetroGL: An OpenGL Game Tutorial in C++ for Win32 platforms相关文章是对此项目的学习整理地址:http://www.codeproject.com/Articles/27219/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-Pla原创 2013-04-22 16:31:11 · 608 阅读 · 0 评论 -
Part3:The Play State
来自:http://www.codeproject.com/Articles/30775/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-pla目录:1、The Play State2、补充 简单使用1、The Play StateThis state is the most complicated one, because原创 2013-04-23 09:20:32 · 480 阅读 · 0 评论 -
Part3:CTetrad_Z 、CTetradFactory及CComboControl
目录:1、CTetrad_Z类具体实现2、CTetradFactory类的实现3、CComboControl类的实现1、CTetrad_Z类具体实现 CTetrad_Z类是方块中的一种,继承自CTetrad类。其它的实现类似 class CTetrad_Z : public CTetrad{public: CTetrad_Z(CBlo原创 2013-04-26 22:05:55 · 563 阅读 · 0 评论 -
Part3:Handling the States of your Game/游戏状态处理
来自:http://www.codeproject.com/Articles/30775/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-pla目录1、Handling the States of your Game2、补充 简单使用1、Handling the States of your GameIn almost原创 2013-04-22 19:07:55 · 548 阅读 · 0 评论 -
Part3:Drawing Text /用OpenGL 绘制文本
来自:http://www.codeproject.com/Articles/30775/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-pla1、Drawing Text CGameFont 类2、CGameFont 类的辅助CTextControl类3、如何输出汉字1、Drawing Text CGameFont 类原创 2013-04-22 16:39:09 · 1146 阅读 · 0 评论 -
Part3:The High-Scores State
来自:http://www.codeproject.com/Articles/30775/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-pla目录:1、The High-Scores State2、简单使用1、The High-Scores StateThis state is responsible to dis原创 2013-04-27 10:27:18 · 543 阅读 · 0 评论 -
Part3:细节 知识点
目录1、排序2、使用stringstream对象简化类型转换1、排序CHighScoreState类中的m_vecHighScores成员 // High-score data: score and player name. struct HighScoreData { std::string strPlayer; ULONG ulScore; /原创 2013-04-27 11:31:02 · 417 阅读 · 0 评论 -
Part1:CException
#ifndef _EXCEPTION_H_#define _EXCEPTION_H_#include #include class CException : public std::exception{public: const char* what() const { return m_strMessage.c_str(); } CException(const std:原创 2013-04-27 16:30:04 · 459 阅读 · 0 评论 -
Part1:win32 程序框架
来自:http://www.codeproject.com/Articles/27219/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-Plamain.cpp#include #include "Exception.h"#include "Application.h"int WINAPI WinMain(HINSTANCE I原创 2013-04-27 16:26:54 · 487 阅读 · 0 评论 -
Part1:Project Settings
来自:http://www.codeproject.com/Articles/27219/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-PlaWe will start by creating a new project and configuring the different options. The tutorial project原创 2013-04-27 16:18:25 · 498 阅读 · 0 评论 -
Part2:Organizing the Files与第三方库的使用方法
来自:http://www.codeproject.com/Articles/28608/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-Pla目录1、Organizing the Files2、第三方库的使用方法1、Organizing the FilesWe first start by organizing o原创 2013-04-27 16:14:56 · 606 阅读 · 0 评论 -
Part2:The CImage Class & Displaying Animations
目录:1、The CImage Class 2、Displaying Animations1、The CImage ClassLet's now look at how this texture is used by the CImage class. As we saw earlier, the CTexture is not manipulated di原创 2013-04-27 14:50:58 · 842 阅读 · 0 评论 -
Part2:Resource Management/资源管理
来自:http://www.codeproject.com/Articles/28608/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-PlaNow that everything is set-up correctly to use DevIL, we are ready to load some images and display them原创 2013-04-27 11:42:53 · 550 阅读 · 0 评论 -
Part2:CSmartPtr
Part2中的智能指针:#ifndef _SMARTPTR_H_#define _SMARTPTR_H_#include #ifndef NULL#define NULL 0#endif// A template class that provides smart pointer functionality./* The principle is that eac原创 2013-04-27 15:56:16 · 467 阅读 · 0 评论 -
Part3:The Menu State/Game Example
来自:http://www.codeproject.com/Articles/30775/TetroGL-An-OpenGL-Game-Tutorial-in-C-for-Win32-pla目录:1、Game Example说明2、The Menu State3、补充 简单使用1、Game Example说明We have now covered every原创 2013-04-22 20:24:27 · 453 阅读 · 0 评论