[Vala] Dereferencing a pointer
- From: regnardet gmx com
- To: vala-list gnome org
- Subject: [Vala] Dereferencing a pointer
- Date: Thu, 11 Mar 2010 21:50:52 +0100
A thing in SDL requires dereferencing a pointer in order to work. In C the expression is:
*pointer = integer;
pointer is void* and integer is a uint.
Can this be done in Vala?
You need this when drawing a pixel on screen in SDL:
http://www.libsdl.org/intro.en/usingvideo.html
All the code leading up to this can be implemented just fine in Vala and SDL.Surface.pixels gives you the
void* pointer.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]