OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "wx/wxprec.h"
+
+#if wxOSX_USE_COCOA_OR_CARBON
+
#import <CoreFoundation/CoreFoundation.h>
#import <ApplicationServices/ApplicationServices.h>
#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
+#include "wx/osx/core/private.h"
#include "wx/osx/private/glgrab.h"
extern CGColorSpaceRef wxMacGetGenericRGBColorSpace();
void * data;
long bytewidth;
GLint width, height;
- long bytes;
CGLContextObj glContextObj;
CGLPixelFormatObj pixelFormatObj ;
bytewidth = width * 4; // Assume 4 bytes/pixel for now
bytewidth = (bytewidth + 3) & ~3; // Align to 4 bytes
- bytes = bytewidth * height; // width * height
/* Build bitmap context */
data = malloc(height * bytewidth);
return image;
}
+#endif