CS488 PA6
Public Member Functions | Private Attributes | List of all members
GraphicsWindow Class Reference

#include <GraphicsWindow.h>

Public Member Functions

 GraphicsWindow (int width, int height)
 
 ~GraphicsWindow ()
 
FrameBuffergetFrameBuffer ()
 

Private Attributes

FrameBufferframeBuffer
 
int height
 
int width
 
SDL_Window * window
 

Detailed Description

An encapsulation of a window that contains a FrameBuffer that can be used for graphics.

Constructor & Destructor Documentation

◆ GraphicsWindow()

GraphicsWindow::GraphicsWindow ( int  width,
int  height 
)

Explicit Value Constructor.

Parameters
widthThe width of the usable area of the GraphicsWindow
heightThe height of the usable area of the GraphicsWindow

◆ ~GraphicsWindow()

GraphicsWindow::~GraphicsWindow ( )

Destructor.

Member Function Documentation

◆ getFrameBuffer()

FrameBuffer * GraphicsWindow::getFrameBuffer ( )

Get a pointer to the FrameBuffer that is associated with this GraphicsWindow.

Returns
A pointer to the FrameBuffer

Member Data Documentation

◆ frameBuffer

FrameBuffer* GraphicsWindow::frameBuffer
private

The FrameBuffer associated with this GraphicsWindow.

◆ height

int GraphicsWindow::height
private

The height of this GraphicsWindow (in pixels).

◆ width

int GraphicsWindow::width
private

The width of this GraphicsWindow (in pixels).

◆ window

SDL_Window* GraphicsWindow::window
private

The SDL window associated with this GraphicsWindow.


The documentation for this class was generated from the following files: