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

Pages: [1] 2
1
Graphics / Re: 'Gl invalid value' and 'Gl out of memory' error
« on: June 25, 2013, 01:44:46 am »
Never mind, I fixed up some of my code and it started to work fine.

2
Graphics / 'Gl invalid value' and 'Gl out of memory' error
« on: June 24, 2013, 11:51:34 pm »
Hello, Ive been trying to figure out the solution for this problem for the whole day and I could'nt. There was a similar question here: http://en.sfml-dev.org/forums/index.php?topic=8548.0. I re installed my display adapter (Intel(R) HD Graphics Driver) and my problem continued. There is no error message that pops up, but in the  command line, it continues to say: GL_INVALID_VALUE texture.cpp (327), and, GL_OUT_OF_MEMORY texture.cpp (145). The executable was just blank. Also, if it helps, The project exits with a code of: -1073741510 (0xc000013a). I looked this up and it wasn't supposed to be a problem. Lastly, I found a topic with something similar to this, and the problem was solved by not including the whole Render Window file, but just the Window file. (I think...). Here is the link to it: http://en.sfml-dev.org/forums/index.php?topic=341.0

3
Graphics / Re: Jumping Rectangle???
« on: April 11, 2013, 12:31:40 am »
thanks, ill probably be able to figure it out now.

4
Graphics / Jumping Rectangle???
« on: April 10, 2013, 10:36:16 pm »
Hello. I have been able to make a rectangle to move, but I cannot make it jump. Is there a certain way of doind this? I tried using a for loop, but that didnt work... Here is a snippet of my full code:

else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
{
        int paramX = 0;
        int paramY = -10;
        sf::Vector2f pos = rectangle.getPosition();
        rectangle.setPosition(pos.x + paramX, pos.y + paramY);
}

I need a couple of hints. Hopefully I will only need a bit of help.
Thanks

5
General / Re: GetPosition()
« on: March 30, 2013, 01:52:32 pm »
ok.

6
General / GetPosition()
« on: March 30, 2013, 01:06:44 pm »
This really confuses me. How is GetPosition used? Ive tried to use it but have failed. Can it be used for collisions:? Such as:
if (rectangle.getPosition() == rectangle2.getPosition() )
{
      cout<<"hit!";
}
(that didnt work by the way)
Could someone give me an example of how this is supposed to be used?

thanks

7
General / Re: OpenAL32.dll cannot be found!
« on: March 24, 2013, 05:53:20 pm »
thanks, ive found it

8
General / Re: OpenAL32.dll cannot be found!
« on: March 24, 2013, 04:43:24 pm »
where is this? Sorry, Im just a bit confused, all of the time ive been using this I have never seen 'OpenAL32'.

9
General / OpenAL32.dll cannot be found!
« on: March 24, 2013, 04:37:22 pm »
This message box only came up when I typed this into my project:

sf::SoundBuffer buffer;
        if (!buffer.loadFromFile("some path..."))
                return EXIT_FAILURE;
        sf::Sound sound;
        sound.setBuffer(buffer);

I dont really know what to do, Inve tried looking up where I could download this, but all of the sites look fake. Everything compiles fine, but this is the last thing, anyone know what to do?

thanks

10
General / Re: Creating Images instead of Loading Images?
« on: March 17, 2013, 03:56:54 pm »
alright thanks.

11
General / Creating Images instead of Loading Images?
« on: March 17, 2013, 03:33:17 pm »
Hi, Ive got SFML running today and its really fun! I was wondering, is it possible to create different images in SFML? I know creating squares and circles is easy, but I mean something like characters in games? Or do you need to create the image in an application such as photoshop and then run import it?

Thanks

12
General / Re: Linking Error
« on: March 16, 2013, 09:50:12 pm »
oh, sorry! You guys dont need to worry anymore, I know what to do. Thanks for the replies again!

13
General / Re: Linking Error
« on: March 16, 2013, 07:27:04 pm »
Ok, I downloaded the files, except i downloaded version 2.0. Everything works except this one error:

1>LINK : fatal error LNK1104: cannot open file 'sfml-graphics.lib'

this is the only file that cannot be found. I think it might have to do with the '-s' and '-s-d' suffixes and that 'STATIC_MAIN' thingy that can be put in the preprocessor section. The thing that is confusing me is the Debug and Release stuff, I dont know which files need which suffix. Or whether or not they even need one. This is the only problem left, and it is really puzzling me.
Any Ideas?

Thanks

14
General / Re: Linking Error
« on: March 16, 2013, 06:10:06 pm »
Ok, i will do this again. thanks for the answers. :)

15
General / Re: Linkin Error
« on: March 16, 2013, 05:20:54 pm »
I did the whole SFML set up, I watched a youtube video and made sure everything was correct. What do you mean by SFML main?

Pages: [1] 2