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.


Topics - Hazique35

Pages: [1]
1
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

2
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

3
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

4
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

5
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

6
General / Linking Error
« on: March 16, 2013, 04:38:24 pm »
Ive only started SFML for a little while, and ive been doing C++ for a little while. Ive been trying to get this silly progrm to work! I cant get the window to open.  I basically just retyped the source code:

#include <SFML\Window.hpp>

int main()
{
        sf::Window App(sf::VideoMode(800, 600, 32), "SFML test");

        bool Running = true;

        while (Running)
        {
                App.Display();
        }
        return EXIT_SUCCESS;
}

Judging by the errors, I didnt configure something correctly:

1>main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall sf::Window::~Window(void)" (??1Window@sf@@UAE@XZ) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function "int __cdecl t_main(void)" (?t_main@@YAHXZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>c:\users\haziqu\documents\visual studio 2010\Projects\SFML\Debug\SFML.exe : fatal error LNK1120: 5 unresolved externals

I would really appreciate it if someone just identified something Im doing wrong. Im using VS 2010.

Thanks

Pages: [1]