Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Mar 2013
Offline Last Active Aug 16 2014 07:01 AM

Topics I've Started

after framebuffer to dark

16 August 2014 - 06:39 AM


it could be that after my framebuffer objects are to dark as it's last in stack. Would you have any idea

on what to check or what could I be doing wrong? Thanks for ideas etc.



pointer value

16 August 2014 - 01:39 AM


like below my app crashes:


float * pin28Value;
*pin28Value = 0.5;
XPLMSetDatavf(pnlBri, pin28Value, 10, 1);


pin28Value needs to be float*. Now I wonder what I'm doing wrong and

how to write the above better and or shorter. The very same but at another

place in my code works!

Thanks in advance



* XPLMSetDatavf
 * Write part or all of a single precision floating point array dataref.  The
 * values passed by inValues are written into the dataref starting at  
 * inOffset.  Up to inCount values are written; however if the values would
 * write "off the end" of the dataref array, then fewer values are written.
 * Note: the semantics of array datarefs are entirely implemented by the
 * plugin (or X-Plane) that provides the dataref, not the SDK itself; the
 * above description is how these datarefs are intended to work, but a rogue
 * plugin may have different behavior.                                                     
XPLM_API void                 XPLMSetDatavf(
                                   XPLMDataRef          inDataRef,    
                                   float *              inValues,    
                                   int                  inoffset,    
                                   int                  inCount);  


OpenAL alGenBuffers OSX // exit OpenAL

09 July 2014 - 04:12 AM


on reloading my shared lib (x-plane plugin) I get an error while alGenBuffers only on OSX. Linux/Windows works fine.

Anyone with an idea on what could be going wrong? As first loading is ok it seems to need additional

stuff in pluginstop for OSX?

Many thanks in advance

how to use or ||

06 July 2014 - 10:24 AM


this seem to be the trouble:

                                    if (rainP <= 0.3 || temperatureC < 0 || cloudAlt <= altibaro){

I want to stop the sound if either rain is less 0.3 or temp below zero or cloud altitude is below.

But the sound keeps playing even if temp is below zero. Am I doing something wrong and

how to write the above?



sdl_image load tga fails on Windows

03 July 2014 - 03:27 AM


I load tga on Linux/Mac with sdl_image ok. But not on Windows. Is there anything to do differently?