liu7788414

源代码在线查看: rendertarget.cpp

软件大小: 4152 K
上传用户: rentianchou
关键词: 7788414 liu
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				#include "RenderTarget.h"
				#include "..\System\Sysdef.h"
				#include "..\System\simplememory.h"
				
				extern CSimpleMemory *SMemory;
				
				CRenderTarget::~CRenderTarget()
				{
				//	m_pEngine = NULL;
					m_width = 0;
					m_height = 0;
					m_pColorBuffer = NULL;
					m_pZBuffer = NULL;
					m_pMirrorBuffer = NULL;
				}
				
				CRenderTarget::CRenderTarget(void)
				{
				//	m_pEngine = pEngine;
					m_width = SCREEN_WIDTH;
					m_height = SCREEN_HEIGHT;
					m_pZBuffer = (int *)SMemory->GlobalMalloc(sizeof(int)*m_width*m_height);
					m_pMirrorBuffer = (int *)SMemory->GlobalMalloc(sizeof(int)*m_width*m_height);
				}
				
				void CRenderTarget::NewColorBuffer()
				{
				}
							

相关资源