
数学/图形学
文章平均质量分 54
产品老唐
这个作者很懒,什么都没留下…
展开
-
Chapter 7. Advanced DirectDraw and Bitmapped Graphics
使用高彩模式GameInit() 中 内联汇编_asm { CLD ; clear direction of copy to forward MOV EAX, color ; color goes here MOV ECX, (SCREEN_WIDTH/2) ; num原创 2006-08-07 03:15:00 · 2309 阅读 · 0 评论 -
Shader in Unity3d
Place holder....原创 2012-09-23 19:23:42 · 665 阅读 · 0 评论 -
Designing Fast-Action Games
As Internet-based video gaming services bring more and more games online, you may be wondering whether your super-speedy, eye-wearying, twitch-action game can cope with the Nets performance limitatio转载 2007-04-21 13:42:00 · 1442 阅读 · 0 评论 -
Chapter 7.Working with Bitmaps
Working with Bitmapstypedef struct tagBITMAPFILEHEADER { // bmfh WORD bfType; // Specifies the file type. // Must be 0x4D42 for .BMP DWORD bfSize; //原创 2006-08-20 17:05:00 · 1294 阅读 · 0 评论 -
Chapter 7.Clipper Fundamentals
Clipper Fundamentals DirectDraw can help with the bitmaps as long as the bitmaps are in the form of DirectDraw surfaces, or IDirectDrawSurface(s) to be exact.Clipping Bitmaps the Hard Way 1、Cl原创 2006-08-20 15:26:00 · 1394 阅读 · 0 评论 -
Chapter 6. First Contact: DirectDraw
Chapter 6. First Contact: DirectDraw1.Using the Interfaces Together create an IDirectDraw7 interface directly with DirectDrawCreateEx(). Using this interface, set both the cooperatio原创 2006-08-06 23:56:00 · 2927 阅读 · 1 评论 -
4.1Windows GDI
创建带阴影的BrushHBRUSH CreateHatchBrush( int fnStyle, // hatch style COLORREF clrref // foreground color);HBRUSH red_hbrush CreateHatchBrush( HS_CROSS, RGB(255,0,0 ) );HBRUSH old_brush = SelectO原创 2006-08-05 04:27:00 · 864 阅读 · 0 评论 -
5.COM基础 - DirectX
Win32App - > HEL/HAL -> HardwareHEL( Hardware Emulation Layer ) 如果硬件不支持某个功能,HEL就会加入,通过软件运算来完成任务。HAL( Hardware Abstraction Layer ) 只有当硬件能够支持所要执行的功能时 HAL才被使用。DirectDraw:控制视频显示的主要图形渲染和2D位图引擎.所有图形的绘制都必原创 2006-08-05 04:30:00 · 1123 阅读 · 0 评论 -
4.2游戏程序框架
// initialize game hereGame_Init();// enter main event loopwhile(TRUE) { // test if there is a message in queue, if so get it if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { // test if this is原创 2006-08-05 04:28:00 · 893 阅读 · 0 评论 -
3.高级Windows编程
资源: 资源编译器首先检查已存在include 头文件中定义的符号。如果符号已经存在,资源编译器就通过 整型ID来引用该符号所指向的资源。否则,资源编译器就假定它是个字符串。LoadIcon( hInstance, MAKEINTRESOURCE( ID_ICON1 ) );LoadIcon( hInstance, MAKEINTRESOURCE( _T("ID_ICON1") ) );原创 2006-08-05 04:26:00 · 899 阅读 · 0 评论 -
2.Windows 编程模型
Pentium2,3,4 能够同时执行多个简单命令,但他们也需要来自同一个线程。#define WIN32_LEN_AND_MEAN 指示编译器本包含我们不需要的MFC内容。WINAPI等同于PASCAL:强制参数从左向右边传递,而不是像默认的 CDECL那样从右到左。BOOLMessageBeep(UINT utype ); //函数指针: int( Math*) ( int,原创 2006-08-05 04:24:00 · 925 阅读 · 0 评论 -
定时高于一切
1、SetTimer(), KillerTimer() 的时间不准确,不推荐 2、 DWORD dwStart = GetTickCount(); // Stop if this has taken too long if( GetTickCount() - dwStart >= TIMELIMIT ) Cancel(); 获得精确的fps原创 2006-08-04 19:56:00 · 807 阅读 · 0 评论 -
浅谈Draw Call和Batch的区别
开发游戏时,一定被时时提醒要减少 Draw Call,当然Unity也不例外,打开Game Window里的 Stats,可以看到 Draw Call 与 Batched 的数字。但到底什么是 Draw Call?影响的效能是来自 CPU?还是 GPU?浅谈Draw Call和Batch的区别首先,让我们定义何为 “Draw Call”:“一个 Draw Call,等于呼叫转载 2015-01-07 17:04:41 · 12730 阅读 · 1 评论