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

Pages: 1 [2] 3
16
Graphics / 512x512 texture slowing game down
« on: February 14, 2010, 01:20:01 am »
Quote from: "Laurent"

Quote
http://www.wademcgillis.com/downloads/stupidcode.png

This link doesn't work.


Oops. I wrote png instead of zip

Quote from: "Xeon06"
Are you sure you're not also loading the images every frame?

Yes. I'm sure.

17
Graphics / 512x512 texture slowing game down
« on: February 13, 2010, 07:22:30 pm »
SFML's graphics rendering is supposed to be faster than Game Maker, right?

Well, I'm trying to display two 512x512 png images on the screen, and the framerate drops drastically.


http://www.wademcgillis.com/downloads/stupidcode.zip

18
Graphics / Sprites appear white in Mac OS X
« on: October 30, 2009, 08:20:02 pm »
Oh... thanks :D

edit:
I tried opening the console before I made this post, but my computer froze whenever I open it

19
Graphics / Sprites appear white in Mac OS X
« on: October 30, 2009, 07:27:18 pm »
For my final project in C++ class, I'm making a TDS using SFML. However, on my mac, sprites show up white.





It's the same code and same images on both machines. I'm using SFML 1.5[/img]

20
General / Can't Static Link Ubuntu 8.10
« on: October 02, 2009, 01:03:58 am »
So I can distribute my game without having users install SFML

21
General / Can't Static Link Ubuntu 8.10
« on: October 02, 2009, 12:45:48 am »
Now I'm getting this...

Quote
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(Window.o)||In function `sf::Window::Display()':|
Window.cpp:(.text+0x633)||undefined reference to `sf::Sleep(float)'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(VideoModeSupport.o)||In function `sf::priv::VideoModeSupport::GetDesktopVideoMode()':|
VideoModeSupport.cpp:(.text+0xe0)||undefined reference to `XRRGetScreenInfo'|
VideoModeSupport.cpp:(.text+0xf9)||undefined reference to `XRRConfigCurrentConfiguration'|
VideoModeSupport.cpp:(.text+0x10f)||undefined reference to `XRRConfigSizes'|
VideoModeSupport.cpp:(.text+0x169)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(VideoModeSupport.o)||In function `sf::priv::VideoModeSupport::GetSupportedVideoModes(std::vector<sf::VideoMode, std::allocator<sf::VideoMode> >&)':|
VideoModeSupport.cpp:(.text+0x1f9)||undefined reference to `XRRGetScreenInfo'|
VideoModeSupport.cpp:(.text+0x216)||undefined reference to `XRRConfigSizes'|
VideoModeSupport.cpp:(.text+0x35f)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(WindowImplX11.o)||In function `sf::priv::WindowImplX11::CleanUp()':|
WindowImplX11.cpp:(.text+0xac8)||undefined reference to `XRRGetScreenInfo'|
WindowImplX11.cpp:(.text+0xae1)||undefined reference to `XRRConfigCurrentConfiguration'|
WindowImplX11.cpp:(.text+0xb2e)||undefined reference to `XRRSetScreenConfig'|
WindowImplX11.cpp:(.text+0xb39)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(WindowImplX11.o)||In function `sf::priv::WindowImplX11::UseVerticalSync(bool)':|
WindowImplX11.cpp:(.text+0x1745)||undefined reference to `glXGetProcAddress'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(WindowImplX11.o)||In function `sf::priv::WindowImplX11::SwitchToFullscreen(sf::VideoMode const&)':|
WindowImplX11.cpp:(.text+0x1c6d)||undefined reference to `XRRGetScreenInfo'|
WindowImplX11.cpp:(.text+0x1c8a)||undefined reference to `XRRConfigCurrentConfiguration'|
WindowImplX11.cpp:(.text+0x1ca8)||undefined reference to `XRRConfigSizes'|
WindowImplX11.cpp:(.text+0x1d2f)||undefined reference to `XRRSetScreenConfig'|
WindowImplX11.cpp:(.text+0x1d47)||undefined reference to `XRRFreeScreenConfigInfo'|
||=== Build finished: 18 errors, 21 warnings ===|

22
General / Can't Static Link Ubuntu 8.10
« on: October 02, 2009, 12:33:54 am »
NEVERMIND

23
General / Can't Static Link Ubuntu 8.10
« on: October 02, 2009, 12:25:03 am »
Whenever I try to static link in Ubuntu 8.10,

Quote

/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(Window.o)||In function `sf::Window::Display()':|
Window.cpp:(.text+0x633)||undefined reference to `sf::Sleep(float)'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(VideoModeSupport.o)||In function `sf::priv::VideoModeSupport::GetDesktopVideoMode()':|
VideoModeSupport.cpp:(.text+0xe0)||undefined reference to `XRRGetScreenInfo'|
VideoModeSupport.cpp:(.text+0xf9)||undefined reference to `XRRConfigCurrentConfiguration'|
VideoModeSupport.cpp:(.text+0x10f)||undefined reference to `XRRConfigSizes'|
VideoModeSupport.cpp:(.text+0x169)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(VideoModeSupport.o)||In function `sf::priv::VideoModeSupport::GetSupportedVideoModes(std::vector<sf::VideoMode, std::allocator<sf::VideoMode> >&)':|
VideoModeSupport.cpp:(.text+0x1f9)||undefined reference to `XRRGetScreenInfo'|
VideoModeSupport.cpp:(.text+0x216)||undefined reference to `XRRConfigSizes'|
VideoModeSupport.cpp:(.text+0x35f)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(WindowImplX11.o)||In function `sf::priv::WindowImplX11::CleanUp()':|
WindowImplX11.cpp:(.text+0xac8)||undefined reference to `XRRGetScreenInfo'|
WindowImplX11.cpp:(.text+0xae1)||undefined reference to `XRRConfigCurrentConfiguration'|
WindowImplX11.cpp:(.text+0xb2e)||undefined reference to `XRRSetScreenConfig'|
WindowImplX11.cpp:(.text+0xb39)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-window-s.a(WindowImplX11.o)||In function `sf::priv::WindowImplX11::SwitchToFullscreen(sf::VideoMode const&)':|
WindowImplX11.cpp:(.text+0x1c6d)||undefined reference to `XRRGetScreenInfo'|
WindowImplX11.cpp:(.text+0x1c8a)||undefined reference to `XRRConfigCurrentConfiguration'|
WindowImplX11.cpp:(.text+0x1ca8)||undefined reference to `XRRConfigSizes'|
WindowImplX11.cpp:(.text+0x1d2f)||undefined reference to `XRRSetScreenConfig'|
WindowImplX11.cpp:(.text+0x1d47)||undefined reference to `XRRFreeScreenConfigInfo'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::~FontLoader()':|
FontLoader.cpp:(.text+0xf2f)||undefined reference to `FT_Done_FreeType'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::~FontLoader()':|
FontLoader.cpp:(.text+0xf5f)||undefined reference to `FT_Done_FreeType'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::CreateBitmapFont(FT_FaceRec_*, unsigned int, std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, sf::Font&)':|
FontLoader.cpp:(.text+0x10d8)||undefined reference to `FT_Set_Pixel_Sizes'|
FontLoader.cpp:(.text+0x114d)||undefined reference to `FT_Select_Charmap'|
FontLoader.cpp:(.text+0x11c7)||undefined reference to `FT_Load_Char'|
FontLoader.cpp:(.text+0x11e7)||undefined reference to `FT_Get_Glyph'|
FontLoader.cpp:(.text+0x1215)||undefined reference to `FT_Glyph_To_Bitmap'|
FontLoader.cpp:(.text+0x1754)||undefined reference to `FT_Done_Glyph'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::FontLoader()':|
FontLoader.cpp:(.text+0x1b59)||undefined reference to `FT_Init_FreeType'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::FontLoader()':|
FontLoader.cpp:(.text+0x1d79)||undefined reference to `FT_Init_FreeType'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::LoadFontFromMemory(char const*, unsigned int, unsigned int, std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, sf::Font&)':|
FontLoader.cpp:(.text+0x1f22)||undefined reference to `FT_New_Memory_Face'|
FontLoader.cpp:(.text+0x1fe4)||undefined reference to `FT_Done_Face'|
/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/libsfml-graphics-s.a(FontLoader.o)||In function `sf::priv::FontLoader::LoadFontFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> > const&, sf::Font&)':|
FontLoader.cpp:(.text+0x219d)||undefined reference to `FT_New_Face'|
FontLoader.cpp:(.text+0x2293)||undefined reference to `FT_Done_Face'|
||=== Build finished: 31 errors, 21 warnings ===|

24
Graphics / Text Drawing is SLOWWWW!
« on: September 10, 2009, 06:30:07 pm »
Oh wow... THANK YOU!

25
Graphics / Text Drawing is SLOWWWW!
« on: September 10, 2009, 02:27:27 pm »
Oops. I forgot to send the other .h files.

26
Graphics / Text Drawing is SLOWWWW!
« on: September 10, 2009, 01:41:32 am »
I am.

27
Graphics / Text Drawing is SLOWWWW!
« on: September 09, 2009, 10:39:31 pm »
Slow meaning it drops in frame rate by a lot when I draw large text. Like, drawing 1 piece of text at 12 pt is fine. But when I do 64pt there is a noticeable drop, and when I do 128pt it is awful.

http://www.wademcgillis.com/downloads/fps3D.zip

Right click to draw big text.

28
Graphics / Text Drawing is SLOWWWW!
« on: September 09, 2009, 09:44:14 pm »
Why is it so slow?

Why does drawing the text dynamically slow it down so much?

Code: [Select]

void draw_text(int x, int y, char* text)
    {
    sf::String displayText = sf::String();
    displayText.SetColor(sf::Color(globalsys::current_color->getRed(),globalsys::current_color->getGreen(),
        globalsys::current_color->getBlue(),255*globalsys::current_alpha));
    displayText.SetFont(globalsys::current_font.font);
    displayText.SetSize(globalsys::current_font.size);
    if (view_enabled)
        displayText.Move(x-view_xview,y-view_yview);
    else
        displayText.Move(x,y);
displayText.SetText(text);
    App.Draw(displayText);
    }

29
Graphics / Converting Image to GLuint (a texture)
« on: September 01, 2009, 04:14:17 pm »
Byte: 8
Short: 16
Float: 32
Int: 32?

30
Graphics / Converting Image to GLuint (a texture)
« on: August 31, 2009, 07:52:08 pm »
GL_UNSIGNED_BYTE solved the problem. It works fine now. I put GL_UNSIGNED_INT because of Uint8*.

Pages: 1 [2] 3
anything