Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - eradiuslore

Pages: [1]
1
Graphics / simple private variable call problem
« on: March 28, 2011, 07:59:51 pm »
hi im not sure if im just being a massive noob but im just trying to call a variable from my header and it just wont recognize it exists, what is it im doing stupidly wrong? and if possible could someone rearrange my code OR explain whats wrong. again bit of a noob.

game.h

Code: [Select]
#include <SFML/Graphics.hpp>


#pragma once


class game{

private:
sf::View view;

public:
game();
~game();
void initialise(sf::RenderWindow& App);
void update(sf::RenderWindow& App);
void render(sf::RenderWindow& App);
};


game.cpp

Code: [Select]
#include "game.h"

game::game(){}
game::~game(){}
void game::initialise(sf::RenderWindow& App){}

void game::update(sf::RenderWindow& App){

float Offset = 200.f * App.GetFrameTime();  
view.Move(0, -Offset);

}
void game::render(sf::RenderWindow& App){}

2
Graphics / View tutorial error
« on: March 28, 2011, 06:48:04 pm »
hey everyone, when i tried to run the graphics view tutorial .cpp download i got this error


Error   1   error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::White" (?White@Color@sf@@2V12@B)   main.obj

i was wondering if anyone can tell me why i might be getting this? and how can i fix it?

Pages: [1]
anything