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

Pages: 1 ... 3 4 [5] 6
61
SFML projects / SFGUI
« on: January 08, 2012, 06:05:23 pm »
works wonderful :)

Thank you for patience

edit:


but the function OnButtonClick does not run, at all

  button->OnClick.Connect( &OnButtonClick );

not connecting.


, ill play..

62
SFML projects / SFGUI
« on: January 08, 2012, 03:33:54 pm »
Woo! thank you !
build sfgui-s-d.lib

Right:

SFML_STATIC
SFGUI_STATIC
SFGUI_EXPORTS
_HAS_ITERATOR_DEBUGGING=0

and now it crashes here:
Code: [Select]


sf::Vector2f Engine::GetTextMetrics( const sf::String& string, const sf::Font& font, unsigned int font_size ) const {
[color=red]sf::Text text( string, font, font_size );[/color]
return sf::Vector2f( text.GetLocalBounds().Width, text.GetLocalBounds().Height );
}

call stack = http://imageshack.us/f/638/32141209.png/

63
SFML projects / SFGUI
« on: January 08, 2012, 03:26:56 am »
Code: [Select]

CMake Error at CMakeLists.txt:9 (find_package):
  Could not find module FindSFML.cmake or a configuration file for package
  SFML.

  Adjust CMAKE_MODULE_PATH to find FindSFML.cmake or set SFML_DIR to the
  directory containing a CMake configuration file for SFML.  The file will
  have one of the following names:

    SFMLConfig.cmake
    sfml-config.cmake


Well according to the docs of:
find_package( SFML 2.0 REQUIRED GRAPHICS WINDOW SYSTEM )

I should have a SFML.cmake  
else it looks for SFMLConfig.cmake

you say where sfml is installed...what does "installed" actually mean...? There is no SFML global variable as long as I know?
there is compiled...

sorry for all the hassle. I get angry enough at cmake...

64
SFML projects / SFGUI
« on: January 07, 2012, 11:39:00 pm »
yep, but I think I need sfgui in debug mode too for more info, but not got it compiled just yet, I do not like cmake,

always get "project files may be invalid"...I can not get sfml dir right :S> I'm getting rather frustrated, nearly thinking about doing my chem calculations :@

SFML latest snapshot in sfml

sfml build and cmpiled into sfml/make

where should sfml_dir go?
the libs and dirs from sfml/debug/lib/debug I moved.

whats this cmakeconfig.cmake? where , what, how is this made, found, discovered?

65
SFML projects / SFGUI
« on: January 07, 2012, 10:06:35 pm »
Okei thanx,

alright:

I made a whole new app, win, console and used the "Hello world" tutorial code.

http://sfgui.sfml-dev.de/guide/getting_started/hello_world


same ,
Code: [Select]


sfg::Label::Ptr _label( sfg::Label::Create( ) );



Quote

Unhandled exception at 0x74efb9bc in sftest.exe: Microsoft C++ exception: std::length_error at memory location 0x0043fce8..

66
SFML projects / SFGUI
« on: January 07, 2012, 09:02:05 pm »
I get access violation errors for

Code: [Select]


sfg::Label::Ptr _label( sfg::Label::Create( "Hello world!" ) );


Trying the hello world, in a non empty app.


using
Windows 32 Bit, Visual Studio 10 (SFML2 included)

from
http://sfgui.sfml-dev.de/download

Any pointers...no idea where I would go from here?




I am trying to compile from Git, but having massive trouble with Cmake and SFMLDIR...I hate cmake :(,. I point it to a folder where I have  compiled SFML 2..maybe debug/release issue? don't know...it says cant find. if I compile sfml into the same dir as the source from which I build it (using cmake and vs2k8). same issues.......but only trying to compile to see if it fixes the above


I would use the SF forums...but I cant register...I just cant get the captcha right...(I am nearly blind, PS the sound ones are horrible always,)...I can use magnifier, but the captcha is soo faded.

67
SFML projects / got a little demo to show you,lol
« on: January 07, 2012, 04:53:10 pm »
Your guard drops when you push kick? Also when you spin, look left, not rightm, you will spin faster, (seriously). and you will be able to get back sight of the enemy quicker.

whats with clothes changing?

but so far so good.  nice work,. how about finishing up a bit more first?

68
General discussions / cross-platform c++ resource container library?
« on: January 07, 2012, 04:47:16 pm »
just started playing with physfs/ , great so far. I didnt get static lib working just yet but I'm not bothered right now.

physfs I'm using as c right now, no problems for me.

I will be building it into the engine class and using it to manage all resources in the end , unless I find something better.

zlib is not cross platform, why?

the other option would be to just write a decompression thing similar, but why reinvent the wheel.....there is loads of c++ examples around though. - I would only be doing this to make the code smaller and dependencies less.

69
Graphics / internal size too high problem loading pictures
« on: January 06, 2012, 08:28:37 am »
internal size is too high.

Maybe it means the resolution is too high / image is too big. Maybe too big for the gfx adapter ? I believe a gfx adapter has size (resolution) limits, there are tricks for this, or maybe the api has its own limits.

"internal size is too high"...is kind of broken English.

70
SFML projects / SFGUI
« on: January 05, 2012, 12:20:04 am »
Looks great, Had librocket working well, but going to drop it to try this,


How about a slider widget?


will try it when I have free time, looks great though.










also GUI wise, if anyone needs simple simple, this has got to be the best UI and UI system I have ever seen..

http://www.antisphere.com/Wiki/tools:anttweakbar

works so well. amazing...fast and I like that its C style on top of C++ actually....

love how you can move it about, scale and reacts so well. (I knw how others can also do this , but it just seems smoother.

shame it has no user input/text box + images .

but for in game tools would be great..

71
General / SFML 2 offline documentation
« on: December 29, 2011, 11:45:52 pm »
Wow you can read it from your phone? Amazing! How big is your phone or must have decent eyes,


but anyway, i think you have to create your own for 2.0 from the files right now, or you could just save the pages on the front page.

72
System / Send keyboard event
« on: December 29, 2011, 03:49:37 pm »
inteface the windows api and use sendmessage

something like;

Hwnd Hwnd;

Hwnd = findwindow (notepad, Classnamenotepad

THen you get the children , i forget, enum children or then use findwindowEx to ge tthe editbox

hw  = findwindowEx(hwnd, editboxclass)

then sendmessage(hw , "text'. CONST_FOR_WRITING);


just google "sendmessage notepad example"

73
General discussions / New graphics API ready
« on: December 27, 2011, 06:31:32 pm »
Optimisation is always good, can do more per frame :P

74
Graphics / ARGB to RGBA or another method?
« on: December 23, 2011, 07:13:26 pm »
:(

so I guess ill have to work out a conversion :\

anyone have any experience ?

75
Graphics / ARGB to RGBA or another method?
« on: December 23, 2011, 05:57:01 pm »
Hello I have a buffer in ARGB format. I am trying to bind it to a texture, sprite for display.


bitmap_in = sourceBuffer    
ARGB buffer with width/height of sourceBufferRect
Code: [Select]



if (!Image.LoadFromPixels(bitmap_rect.width(),bitmap_rect.height(), bitmap_in))
{
    // Error...
}



LoadFromPixels(w, h, PointerToPixelsInMemory);
Please note that when you load an image from memory, pixels must have a specific format, which is 32-bits RGBA.


I think I can bind them to opengl textures, but I don't regally want to do taht.

Is there a way in SF to load, translate the format?

anyone know of a good way, I am struggling to find much conversion information.

Edit: you know I'm sure you can do this at opengl level with parameters...maybe there is a way in SFML to just supply those parameters?

Quote


void glReadPixels(   GLint     x,
    GLint     y,
    GLsizei     width,
    GLsizei     height,
    GLenum     format,
    GLenum     type,
    GLvoid *     data);



though not looked how loadpixel works. I assume it just sets a format?

Pages: 1 ... 3 4 [5] 6