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 - Christopher Jozwiak

Pages: 1 [2] 3 4
16
Window / Re: Call to draw() crashes program.
« on: May 01, 2015, 04:16:42 am »
What is your GPU model and what's the driver version?

Intel(R) 82865G Graphics Controller

Driver Version: 6.14.10.4363

Some more info:

DirectX* Version:      9.0
Physical Memory:      1527 MB
Minimum Graphics Memory:   8 MB
Maximum Graphics Memory:   96 MB
Graphics Memory in Use:   8 MB
Processor:      x86
Processor Speed:      2793 MHZ

17
Window / Call to draw() crashes program.
« on: May 01, 2015, 04:05:24 am »
I am attempting to compile a very simple program with SFML.  Any attempt to draw a simple sf::RectangleShape results in a crash.  I have compiled SFML 2 using mingw-gcc 4.8.1 and can compile it perfectly fine without a draw call.  I have an outdated system and am on windows 7 and my GFX Card doesnt only had drivers for XP.  I have those installed.  I'm assuming this is the core of the problem but wanted another opinion. 

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

#define Window_Height 800
#define Window_Width 600



int main(){

    sf::RenderWindow window(sf::VideoMode(Window_Height, Window_Width), "First SFML Game");
    sf::RectangleShape arrofshape[10];
    sf::RectangleShape shape;
    bool draw = 1;
    for (int i; i < 10; i++){
        arrofshape[i].setFillColor(sf::Color::Red);
        arrofshape[i].setScale(sf::Vector2f(10,10));
    }

    while (window.isOpen()){

        sf::Event event;

        while(window.pollEvent(event)){

            if (event.type == event.Closed){
                window.close();
            }
        }

    window.clear(sf::Color::Black);

    window.display();

    }




    return 0;
}
 

18
Window / Re: Compiling in Codeblocks gcc 4.8.1
« on: October 12, 2014, 07:02:41 pm »
Thank you.  That fixed it.  Probably the millionth time you've read it but I analogize for not utilizing available resources.  It will most likely happen again.. and for that I truly am sorry.

19
Window / Compiling in Codeblocks gcc 4.8.1
« on: October 12, 2014, 05:33:43 pm »
Hello,
To start I cloned the source from Github.  Then used CMake to generate the makefiles for codeblocks.  I then opened the project and hit build and I am getting a errors.

Error:
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 4 second(s)) ===|
C:\Sfml\SFML\src\SFML\Window\Win32\WindowImplWin32.cpp:387:26: error: 'FLASHW_TRAY' was not declared in this scope
         info.dwFlags   = FLASHW_TRAY;
                          ^
mingw32-make.exe[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/WindowImplWin32.cpp.obj] Error 1
mingw32-make.exe[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
src\SFML\Window\CMakeFiles\sfml-window.dir\build.make:486: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/Win32/WindowImplWin32.cpp.obj' failed
mingw32-make.exe[2]: Leaving directory 'C:/Sfml/SFML'
CMakeFiles\Makefile2:204: recipe for target 'src/SFML/Window/CMakeFiles/sfml-window.dir/all' failed
mingw32-make.exe[1]: Leaving directory 'C:/Sfml/SFML'
C:/Sfml/SFML/Makefile:116: recipe for target 'all' failed

 

20
General / Re: New Square from old square...
« on: March 22, 2013, 02:24:26 am »
Your Probably right.  Should think about things on my own instead of asking for others to give me advice.  Otherwise I'll get addicted to doing it.. ??? Thanks though.

21
General / New Square from old square...
« on: March 22, 2013, 01:11:28 am »
Not really related to sfml per say... But more to my project using sfml.  I want to draw a new square everytime my mouse is clicked.  Not sure how to do it though. My code is at www.cjozwiak.com

22
General / Re: cant get sfml 2 to work on code::blocks
« on: March 21, 2013, 09:39:45 pm »
Did you select Code:blocks-MinGW Makefiles when in configuration for cmake-gui?

23
System / Re: creating a spin-down timer
« on: March 21, 2013, 07:39:32 pm »
I'm not really good an expert on this stuff. But wouldn't you have to either decrease a clocks increments? Not sure but, thought about it.  Makes sense for the moment :)

24
General / Re: Loading problem...
« on: March 21, 2013, 08:04:48 am »
Should have just looked around I guess.  Knew it was something like that..  Thanks.

25
SFML 1.6 is 2 years old.  Unless you build it from source it's not going you will not be able to use it with vs 2012.  I suggest you use 2.0 it is stable and is about to be released as current.  Also use the search function.  There's multiple references too this kind of question, well everywhere.  Also why are you using MinGW?  VS 2012 uses a different compiler.

26
General / Loading problem...
« on: March 21, 2013, 01:14:24 am »
Hello, Once again.

I'm having trouble getting my vs 2012 environment to recognize the files I'm trying to load via sfml.  The code I have www.cjozwiak.com (Just an archive site for my code).  It works fine when I open up my .exe but the debug build gives me could load "arial.ttf and could not load "logo.png".

27
General / Re: Link error .exe
« on: March 19, 2013, 07:23:57 pm »
Thanks for the motivation, don't get that too much :P

28
General / Re: Link error .exe
« on: March 19, 2013, 06:58:23 pm »
Doh! I was putting my function call out of while (running)...  It's working now.  I think I can get it from here.  Took forever for me to even comprehend classes!

29
General / Re: Link error .exe
« on: March 19, 2013, 06:50:54 pm »
Okay got that working. Would I have to have my event function as a thread to have it run along with the window?

30
General / Re: Link error .exe
« on: March 19, 2013, 06:27:13 pm »
Ya it worked not the only problem is its not doing what I want it to do the window wont open. it just displays a console window.

Pages: 1 [2] 3 4
anything