
SDL
文章平均质量分 51
mu_gong
这个作者很懒,什么都没留下…
展开
-
先抄一个出来再说
#include #include #include #include #include #include #include /////////////////////////////////////////////////////////////////////////SDL_Surface *g_screenSurface = NULL;SDL_Surface *g_donutSurface原创 2005-03-30 23:05:00 · 1052 阅读 · 0 评论 -
SDL设置转换色
SDL_Surface *ChangeColor(SDL_Surface *surface, int flag){ //flag : 1.绿色2.红色3.蓝色 SDL_Surface *sur=surface; SDL_LockSurface(sur); register Uint32 *s = (Uint32 *)sur->pixels; int w = sur->w; int h =原创 2005-04-28 14:19:00 · 1592 阅读 · 0 评论 -
SDL 键盘事件监控
#include #include "SDL.h"//#pragma comment(lib, "SDL.lib")// Screen width#define WIDTH 480// Screen height#define HEIGHT 320#define SAFE_RELEASE(p) { if(p != NULL) { SDL_FreeSurface(p); (p)=NULL;原创 2005-04-20 11:50:00 · 1375 阅读 · 0 评论 -
入门基本概念-摘录
converseHeavenPR MM 原创作品集(Elfin整理)HeavenPR(简称HPR),一个来自新西兰的1x岁中国留学MM(据传上有天堂下有苏杭才会出产此等PLMM ^^/)为GZeasy.com论坛写的"图形加速技术基本原理杂锦”。此外,HeavenPR还为Gzeasy编写了两个图形卡测试软件——FillrateBenchmark 2004 和Virtual Shading Stud原创 2005-04-17 20:02:00 · 3350 阅读 · 0 评论 -
计 算 机 图 形 学 常用 词 汇 表
3D 建 模 (3D modeling) 用 三 维 坐 标 来 描 述 物 体 的 形 状 。 在各 种 计 算 机 图 形 应 用 领 域 中 有 不 同 的三 维 建 模 方 法 , 即 用 不 同 的 算 法 来 描述 这 些 领 域 中 的 物 体 和 对 象 。 3D 变 换 (3D transformation) 在 三 维 空 间 中 把 物 体 的 三 维 坐 标 从一 个 位原创 2005-04-15 14:24:00 · 1744 阅读 · 0 评论 -
SDL之四
#include #include #include #if defined(_MSC_VER)#include "SDL.h"#else#include "SDL/SDL.h"#endif// Screen surfaceSDL_Surface *gScreen;// Picture surfaceSDL_Surface *gPicture;// Heightmap surfaceSDL_Sur原创 2005-04-14 17:04:00 · 1444 阅读 · 0 评论 -
SDL学习之2
#include #include #include #include ///////////////表面////////////////////////////////////////////////////////////SDL_Surface *g_screenSurface = NULL;//主表面SDL_Surface *g_Buffer = NULL;//后台缓冲区页面SDL_Su原创 2005-04-10 15:28:00 · 1333 阅读 · 0 评论 -
SDL之三
#include #include #include #if defined(_MSC_VER)#include "SDL.h"#else#include "SDL/SDL.h"#endif// Screen surfaceSDL_Surface *gScreen;// Screen pitch#define PITCH (gScreen->pitch / 4)// Screen width#de原创 2005-04-13 17:12:00 · 1035 阅读 · 0 评论 -
SDL之学习1
#include #include #include #include #include #include #include "Tunnel.h" // SDL StuffSDL_Surface *screen;SDL_Surface *bBuffer; SDL_Surface *Image;原创 2005-04-04 16:17:00 · 1055 阅读 · 0 评论 -
知错就改,善摸大烟
要一直努力!(42377850) 16:03:15Moonwell◎G4(19856454) 15:48:47i386的都是这样请教一下 i386 代表的是cpu么? Moonwell◎G4(19856454) 15:59:45i386是一个体系 疯瘤财籽A&BB(282105028) 15:59:50i386是一种CPU的体系结构。 Moonwell◎G4(19856454) 16:00:00包原创 2005-04-28 16:16:00 · 1503 阅读 · 0 评论