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 - Lith

Pages: [1]
1
Graphics / [SFML1.6] Fading An Image In
« on: September 04, 2010, 06:23:25 pm »
I found out what the problem was.

I was trying to fade the image in inside a class and in this classes constructor, i was doing something like this:
Code: [Select]

SomeClass(Image texture)
{
     TheSprite.SetImage(texture);
}

(Not Actual Code)


i changed it to something like this:
Code: [Select]

SomeClass(Image texture)
{
     other_texture = texture;
     TheSprite.SetImage(other_texture);
}

(Not Actual Code)


other_texture is declared in the .h file
i dont why it worked but it did, can anyone explain?

2
Graphics / [SFML1.6] Fading An Image In
« on: September 04, 2010, 04:54:56 pm »
I have realised that this question has been asked many times but i think my variation is unique.

I can get the image to fade in perfectly, but it doesnt display the image, it just displays a white box.

I saw that the deafult color for an image is white (255,255,255,255). So i assumed that i can just change the last paramater and it would work.

What i think i am doing is filling in the image with a white rectangle by doing this:
Code: [Select]

BallSprite.SetColor(Color(255,255,255,0)); //the ball sprite will be completely transparent?

But thats not what i want to do, i just want to change it's alpha

3
Window / [SFML 1.6] Preventing A Window Resize
« on: September 03, 2010, 09:39:34 pm »
Is there any possible way to make the user not be able to resize the window?

I tryed to re-create the window with the original paramaters every time there is a resize event but i was wondering if there was any other way.

4
Window / VC++ 2008 Linking Error[Solved]
« on: September 01, 2010, 03:07:31 pm »
Thanks for the reply.

I went to:
Tools->Options->Projects And Solutions->VC++ Directories->Library files.

Also, i did include the SFML_DYNAMIC preprocessor thing

EDIT:
I uploaded some screenshots, look in the main post

5
Window / VC++ 2008 Linking Error[Solved]
« on: September 01, 2010, 02:53:02 pm »
EDIT:
I solved the problem by removing the semicollon from the linker input settings.

So i guess that you only use the semicollon if your going to use more than 1 lib file.



I am using Windows 7 and Visual C++ 2008, and i keep getting this linker error when i try to compile this program:
Code: [Select]

#include <SFML/Window.hpp>
using namespace sf;

int main()
{
Window MainWindow(VideoMode(640,480,32), "SFML Window Test"); //create the window

bool quit = false;
while(quit == false)
{
//Display the window
MainWindow.Display();
}

return 0;
}


This is the error that i get when i build:
Code: [Select]

LINK : fatal error LNK1104: cannot open file 'sfml-window-d.lib;

It says sfml-window.lib for release

I am sure i pointed VS to the right folder for the libs:
Code: [Select]

C:\Users\*****\Documents\Visual Studio 2008\dev librarys\sfml\SFML-1.6\lib


I have also cheched that the files are actully in the folder.
Please can you help me.

EDIT:
I have uploaded images of my configurations:









Pages: [1]
anything