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

Pages: 1 2 [3] 4
31
SFML wiki / [Tutorial] Manage dynamic key binding.
« on: July 01, 2008, 10:42:46 pm »
You forgot to translate some comments in the complete source, I fixed it (I believe so anyways)...

32
SFML projects / An simple immediate mode GUI with SFML
« on: July 01, 2008, 10:32:19 pm »
Very impressive... I suppose I'll just copy and paste this into the wiki then for you? Alright added it under Projects -> Extensions -> simple_imgui

33
Graphics / Drawing Everything
« on: May 29, 2008, 11:53:09 pm »
I don't mean to sound like a jerk, but sometimes the best way to debug your programs is to test them yourself. Most of these problems could have been fixed with thinking or creativity, however I can see why you would ask questions about certain techniques... And quasius has a point, if you write code for someone new, you're doing them a disfavor.

34
Feature requests / please make a .net binding for sfml
« on: May 25, 2008, 01:22:21 am »
I'm not a big fan of .net; however I agree with it being a different project to keep SFML 1.3 on track =).

35
General / SVN-Problems
« on: May 25, 2008, 01:20:00 am »
Off-topic: Laurent I'd recommend making a sticky in every forum with a link to SVN download and build instructions...it would save time.

36
Graphics / Drawing Everything
« on: May 21, 2008, 03:42:41 am »
I recommend at least copying and pasting the errors you get, and what lines it refers to, otherwise its like finding a (many) needles in a (very large) haystack.

37
Window / Inherit from RenderWindow
« on: May 20, 2008, 12:03:03 am »
Double post there, but when I tried inheriting from RenderWindow it worked fine. For reference, what dependency were you missing?

38
Graphics / Drawing Everything
« on: May 17, 2008, 04:45:13 pm »
Quote from: "Nexus"
Sorry, if it's a little bit off-topic...
Quote from: "Kernelpanic"

It would be good to use iterators for the loop:
[...]
So you can use easily all types of containers.

Is this faster with iterators or is it just more general and easy to port? What is a reason against indexes?
Seconded, because the reason I use STL vectors is because they're fast, and allow index access with [] and at, otherwise I don't think I'd like STL containers as much.

39
Hehe "ist displayed"... =D

I suppose this is decent suggestion? Except in SDL when you flip the screen it clears the contents as well (if I remember correctly)...so this may be something more technical than I understand (I'm too lazy to understand OpenGL beyond textures and vertices).

40
Graphics / Drawing Everything
« on: May 16, 2008, 10:28:45 pm »
But I think he means, he wants the entire screen to redraw, not all the objects. Like in SDL you can call SDL_Flip(Screen).

41
Graphics / Animation
« on: May 13, 2008, 02:05:10 am »
To above: You could just have made all of your sprites animated with just one frame for non-animated sprites then you could still call the update function on all of them. I would suppose it would have a small overhead (considering you have an integer to keep track of current frame position).

42
Graphics / Animation
« on: May 12, 2008, 02:16:15 pm »
I would store all three images in some form of container, such as a STL vector. Then when the user presses a key, you just change the texture and re-render that object.

Pseudo-Code:
Code: [Select]

image frame[2];
//assign images to frame[0,1,2]
if (key == Left)
{
    x++;
    if(x>2){x=0;}
    display_image = frame[x];
}


Of course you would probably want to only allow one change per frame.

43
Feature requests / Z order
« on: April 19, 2008, 08:46:59 pm »
Just have an integer to sort which order to draw them in then sort them all? That is what I would do... Adding a Z element would add not necessary complexity to a Simple & Fast Library.

44
Graphics / Lighting?
« on: April 18, 2008, 12:07:15 am »
I was just "checking under the hood" and from what I see SFML is OpenGL based for graphics. So I was wondering if their is or will be support for lighting?

45
Feature requests / Gui package
« on: April 16, 2008, 02:47:51 pm »
https://mollyrocket.com/forums/viewtopic.php?t=134 If you're going to make a GUI package, try something like that. I know it does not fit into the object oriented theme, but it sure is simple and effective (for simple things).


Also a good reference:
http://sol.gfxile.net/imgui/

Pages: 1 2 [3] 4
anything