Hi,
is this deprecated? if so, what should I use, or shoudl I write sort of
my own
sort_with_data((CompareDataFunc) sort_func_items);
and why this cannot be in object as method?
int sort_func_items(Item item1, Item item2) {
if (item1._date < item2._date) {
return 1;
On Wed, Aug 03, 2011 at 10:57:16PM +0200, Jens Georg wrote:
> On Mi, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
> > Hi,
> >
> > why somebody uses this. prefix and somebody doesn't, I have tried and it
> > worked with or without it
>
> It's a matter of taste and or coding guidelines or exp
My favorite is #4.
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
In Vala docs(1), it is shown how to render a static display output using OpenGL.
There two general ways which described:
1. Using GLFW/GLUT with a real game loop(re-render always).
2. Using Gtk/X11 for rendering a static visual output(using "exposed" event)
I want my library to support rendering
> I'm asking this because logically it is possible to process a game Loop with
> glib main loop.
> Does this solution involves running the game loop different thread of the
> main loop?
I do it by manually iterating the glib mainloop within my gameloop.
__
I'm glad it's possible. Can you please explain how do you integrate this?
I'm new(half year) for the glib concepts, so the only integration I know with
Glib main loop is Idle.add ()...
Does you do this single threaded, or dual?
Many thanks,
Tal
> Date: Thu, 4 Aug 2011 19:44:14 +0200
> Subject: R
> I'm glad it's possible. Can you please explain how do you integrate this?
> I'm new(half year) for the glib concepts, so the only integration I know with
> Glib main loop is Idle.add ()...
> Does you do this single threaded, or dual?
Just using the main thread, with MainContext.iteration()
http
On Wed, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
> Hi,
>
> why somebody uses this. prefix and somebody doesn't, I have tried and it
> worked with or without it
1.
class Test {
private int i;
public Test(int i) {
this.i = i; // field is assigned by variable
i = this.i; //
Thank you. If I get you right, this will block events until I finish drawing,
but that is the purpose.
And is it possible to do it multi-threaded? In a way that input thread is
different than drawing thread?
Thanks again,
Tal
> Date: Thu, 4 Aug 2011 20:10:23 +0200
> Subject: Re: [Vala] How to u