[Vala] Dereferencing a pointer



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]