-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.cpp
More file actions
38 lines (32 loc) · 831 Bytes
/
Copy pathApplication.cpp
File metadata and controls
38 lines (32 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Application.cpp: implementation of the Application class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CS580HW.h"
#include "Application.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Application::Application()
{
m_pDisplay = NULL; // the display
//for(int i=0; i<7; i++){
//t_Render[i] = NULL; // the renderer
//t_Display[i] =NULL;
//}
m_pRender =NULL;
m_pUserInput = NULL;
m_pFrameBuffer = NULL;
}
Application::~Application()
{
if(m_pFrameBuffer != NULL)
delete m_pFrameBuffer;
if(m_pUserInput != NULL)
delete m_pUserInput;
}