From 4414344fb085c458bd689d95a9f02bc251d0554a Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 2 Oct 2010 03:44:08 +0200 Subject: Replaced all instances of TextureSDL with TextureSTBI. --- engine/enemy.cpp | 4 ++-- engine/engine.cpp | 4 ++-- engine/player.cpp | 4 ++-- engine/stage.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'engine') diff --git a/engine/enemy.cpp b/engine/enemy.cpp index 383ddc7..0f0c32f 100644 --- a/engine/enemy.cpp +++ b/engine/enemy.cpp @@ -1,13 +1,13 @@ #include "enemy.h" -#include +#include #include Enemy::Enemy(const Vector2& initpos, std::vector& stage_patterns) : patterns(stage_patterns) { pos = initpos; - texture = new TextureSDL("textures/enemy.png"); + texture = new TextureSTBI("textures/enemy.png"); } void Enemy::update() { diff --git a/engine/engine.cpp b/engine/engine.cpp index 278007e..0c54bae 100644 --- a/engine/engine.cpp +++ b/engine/engine.cpp @@ -2,7 +2,7 @@ #include "config.h" -#include +#include #include @@ -46,7 +46,7 @@ Engine::Engine() { font = new FTTextureFont("fonts/VeraMono.ttf"); font->FaceSize(20); - background = new TextureSDL("textures/background.png"); + background = new TextureSTBI("textures/background.png"); paused = false; } diff --git a/engine/player.cpp b/engine/player.cpp index 091f874..4b09890 100644 --- a/engine/player.cpp +++ b/engine/player.cpp @@ -2,7 +2,7 @@ #include #include "player.h" -#include +#include #include "config.h" Player::Player() { @@ -10,7 +10,7 @@ Player::Player() { y = 0.1; move_factor = 0.005; focus_factor = 0.5; - texture = new TextureSDL("textures/player.png"); + texture = new TextureSTBI("textures/player.png"); } void Player::draw() { diff --git a/engine/stage.cpp b/engine/stage.cpp index 46e18a8..0026119 100644 --- a/engine/stage.cpp +++ b/engine/stage.cpp @@ -2,7 +2,7 @@ #include "config.h" -#include +#include #include #include @@ -12,7 +12,7 @@ Stage::Stage() { player = new Player(); - texture = new TextureSDL("textures/shot1.png"); + texture = new TextureSTBI("textures/shot1.png"); shader = new GLShaderProgram(); enemy_list.push_back(new Enemy1(Vector2(0.25, 0.75), patterns)); -- cgit v1.2.3