Incremental Engine  1.0.6
A 2D Game Engine to create Idle Games
IncrementalEngine::TextureBase Class Reference

#include <TextureBase.h>

Inheritance diagram for IncrementalEngine::TextureBase:
IncrementalEngine::Drawable IncrementalEngine::Bitmap

Public Member Functions

 TextureBase ()
 
virtual ~TextureBase ()
 
void Update (Transform transform, FloatRect bounds)
 
TextureGetTexture ()
 
D3DXVECTOR2 GetSize ()
 
- Public Member Functions inherited from IncrementalEngine::Drawable
virtual HRESULT Draw (ID3D11DeviceContext *deviceContext)=0
 

Protected Attributes

Texture_texture
 
Transform _transform
 
FloatRect _bounds
 
- Protected Attributes inherited from IncrementalEngine::Drawable
RenderWindow_renderWindow
 
ShaderManager_shaderManager
 
ID3D11Device * _device
 

Additional Inherited Members

- Protected Member Functions inherited from IncrementalEngine::Drawable
void CopyParameters (Drawable *drawable)
 

Detailed Description

Definition at line 14 of file TextureBase.h.

Constructor & Destructor Documentation

◆ TextureBase()

IncrementalEngine::TextureBase::TextureBase ( )

Definition at line 5 of file TextureBase.cpp.

5  :
6  _texture(NULL)
7  {
8  _transform = Transform();
9  _bounds = { 0, 0, 0, 0 };
10  }

◆ ~TextureBase()

IncrementalEngine::TextureBase::~TextureBase ( )
virtual

Definition at line 12 of file TextureBase.cpp.

13  {
14  }

Member Function Documentation

◆ GetSize()

D3DXVECTOR2 IncrementalEngine::TextureBase::GetSize ( )

Definition at line 27 of file TextureBase.cpp.

28  {
29  return _texture->GetSize();
30  }

◆ GetTexture()

Texture * IncrementalEngine::TextureBase::GetTexture ( )

Definition at line 22 of file TextureBase.cpp.

23  {
24  return _texture;
25  }

◆ Update()

void IncrementalEngine::TextureBase::Update ( Transform  transform,
FloatRect  bounds 
)

Definition at line 16 of file TextureBase.cpp.

17  {
18  _transform = transform;
19  _bounds = bounds;
20  }

Member Data Documentation

◆ _bounds

FloatRect IncrementalEngine::TextureBase::_bounds
protected

Definition at line 28 of file TextureBase.h.

◆ _texture

Texture* IncrementalEngine::TextureBase::_texture
protected

Definition at line 26 of file TextureBase.h.

◆ _transform

Transform IncrementalEngine::TextureBase::_transform
protected

Definition at line 27 of file TextureBase.h.

IncrementalEngine::TextureBase::_bounds
FloatRect _bounds
Definition: TextureBase.h:28
IncrementalEngine::TextureBase::_transform
Transform _transform
Definition: TextureBase.h:27
IncrementalEngine::Texture::GetSize
D3DXVECTOR2 GetSize()
Definition: Texture.cpp:58
IncrementalEngine::TextureBase::_texture
Texture * _texture
Definition: TextureBase.h:26