2011-04-08 13:03:26 -07:00
|
|
|
/*
|
2013-07-25 09:51:21 -07:00
|
|
|
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
|
2011-04-08 13:03:26 -07:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely.
|
|
|
|
*/
|
2006-07-18 07:49:51 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
#include "SDL_test_common.h"
|
2006-07-18 07:49:51 +00:00
|
|
|
|
|
|
|
#ifdef __MACOS__
|
|
|
|
#define HAVE_OPENGL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_OPENGL
|
|
|
|
|
|
|
|
#include "SDL_opengl.h"
|
|
|
|
|
|
|
|
/* Undefine this if you want a flat cube instead of a rainbow cube */
|
|
|
|
#define SHADED_CUBE
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
static SDLTest_CommonState *state;
|
2006-07-19 04:24:41 +00:00
|
|
|
static SDL_GLContext context;
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
|
|
|
static void
|
|
|
|
quit(int rc)
|
2006-07-18 07:49:51 +00:00
|
|
|
{
|
2006-07-19 04:24:41 +00:00
|
|
|
if (context) {
|
2008-03-14 18:17:49 +00:00
|
|
|
/* SDL_GL_MakeCurrent(0, NULL); *//* doesn't do anything */
|
2006-07-19 04:24:41 +00:00
|
|
|
SDL_GL_DeleteContext(context);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2012-12-31 10:26:38 -08:00
|
|
|
SDLTest_CommonQuit(state);
|
2006-07-19 04:24:41 +00:00
|
|
|
exit(rc);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
static void
|
|
|
|
Render()
|
2006-07-18 07:49:51 +00:00
|
|
|
{
|
2006-07-19 04:24:41 +00:00
|
|
|
static float color[8][3] = {
|
|
|
|
{1.0, 1.0, 0.0},
|
|
|
|
{1.0, 0.0, 0.0},
|
|
|
|
{0.0, 0.0, 0.0},
|
|
|
|
{0.0, 1.0, 0.0},
|
|
|
|
{0.0, 1.0, 1.0},
|
|
|
|
{1.0, 1.0, 1.0},
|
|
|
|
{1.0, 0.0, 1.0},
|
|
|
|
{0.0, 0.0, 1.0}
|
|
|
|
};
|
|
|
|
static float cube[8][3] = {
|
|
|
|
{0.5, 0.5, -0.5},
|
|
|
|
{0.5, -0.5, -0.5},
|
|
|
|
{-0.5, -0.5, -0.5},
|
|
|
|
{-0.5, 0.5, -0.5},
|
|
|
|
{-0.5, 0.5, 0.5},
|
|
|
|
{0.5, 0.5, 0.5},
|
|
|
|
{0.5, -0.5, 0.5},
|
|
|
|
{-0.5, -0.5, 0.5}
|
|
|
|
};
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Do our drawing, too. */
|
|
|
|
glClearColor(0.0, 0.0, 0.0, 1.0);
|
|
|
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
glBegin(GL_QUADS);
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
#ifdef SHADED_CUBE
|
|
|
|
glColor3fv(color[0]);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glColor3fv(color[1]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
glColor3fv(color[2]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
glColor3fv(color[3]);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
|
|
|
|
glColor3fv(color[3]);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
glColor3fv(color[4]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
glColor3fv(color[7]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
glColor3fv(color[2]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
|
|
|
|
glColor3fv(color[0]);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glColor3fv(color[5]);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glColor3fv(color[6]);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
glColor3fv(color[1]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
|
|
|
|
glColor3fv(color[5]);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glColor3fv(color[4]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
glColor3fv(color[7]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
glColor3fv(color[6]);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
|
|
|
|
glColor3fv(color[5]);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glColor3fv(color[0]);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glColor3fv(color[3]);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
glColor3fv(color[4]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
|
|
|
|
glColor3fv(color[6]);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
glColor3fv(color[1]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
glColor3fv(color[2]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
glColor3fv(color[7]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
#else /* flat cube */
|
|
|
|
glColor3f(1.0, 0.0, 0.0);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
|
|
|
|
glColor3f(0.0, 1.0, 0.0);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
|
|
|
|
glColor3f(0.0, 0.0, 1.0);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
|
|
|
|
glColor3f(0.0, 1.0, 1.0);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
|
|
|
|
glColor3f(1.0, 1.0, 0.0);
|
|
|
|
glVertex3fv(cube[5]);
|
|
|
|
glVertex3fv(cube[0]);
|
|
|
|
glVertex3fv(cube[3]);
|
|
|
|
glVertex3fv(cube[4]);
|
|
|
|
|
|
|
|
glColor3f(1.0, 0.0, 1.0);
|
|
|
|
glVertex3fv(cube[6]);
|
|
|
|
glVertex3fv(cube[1]);
|
|
|
|
glVertex3fv(cube[2]);
|
|
|
|
glVertex3fv(cube[7]);
|
|
|
|
#endif /* SHADED_CUBE */
|
2006-07-18 07:49:51 +00:00
|
|
|
|
|
|
|
glEnd();
|
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
glMatrixMode(GL_MODELVIEW);
|
|
|
|
glRotatef(5.0, 1.0, 1.0, 1.0);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2006-07-19 04:24:41 +00:00
|
|
|
main(int argc, char *argv[])
|
2006-07-18 07:49:51 +00:00
|
|
|
{
|
2009-12-15 20:53:09 +00:00
|
|
|
int fsaa, accel;
|
2006-07-18 07:49:51 +00:00
|
|
|
int value;
|
2006-07-19 04:24:41 +00:00
|
|
|
int i, done;
|
2006-08-05 22:34:23 +00:00
|
|
|
SDL_DisplayMode mode;
|
2006-07-19 04:24:41 +00:00
|
|
|
SDL_Event event;
|
|
|
|
Uint32 then, now, frames;
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
int status;
|
2013-09-20 13:43:00 -04:00
|
|
|
int dw, dh;
|
2006-07-19 04:24:41 +00:00
|
|
|
|
2013-08-14 23:30:10 -07:00
|
|
|
/* Enable standard application logging */
|
|
|
|
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Initialize parameters */
|
|
|
|
fsaa = 0;
|
2009-12-15 20:53:09 +00:00
|
|
|
accel = -1;
|
2006-07-19 04:24:41 +00:00
|
|
|
|
|
|
|
/* Initialize test framework */
|
2012-12-31 10:26:38 -08:00
|
|
|
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
|
2006-07-19 04:24:41 +00:00
|
|
|
if (!state) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
for (i = 1; i < argc;) {
|
|
|
|
int consumed;
|
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
consumed = SDLTest_CommonArg(state, i);
|
2006-07-19 04:24:41 +00:00
|
|
|
if (consumed == 0) {
|
2013-07-08 17:51:17 -04:00
|
|
|
if (SDL_strcasecmp(argv[i], "--fsaa") == 0 && i+1 < argc) {
|
|
|
|
fsaa = atoi(argv[i+1]);
|
|
|
|
consumed = 2;
|
2009-12-15 20:53:09 +00:00
|
|
|
} else if (SDL_strcasecmp(argv[i], "--accel") == 0 && i+1 < argc) {
|
|
|
|
accel = atoi(argv[i+1]);
|
|
|
|
consumed = 2;
|
2006-07-19 04:24:41 +00:00
|
|
|
} else {
|
|
|
|
consumed = -1;
|
|
|
|
}
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
if (consumed < 0) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("Usage: %s %s [--fsaa n] [--accel n]\n", argv[0],
|
2012-12-31 10:26:38 -08:00
|
|
|
SDLTest_CommonUsage(state));
|
2006-07-19 04:24:41 +00:00
|
|
|
quit(1);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
i += consumed;
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Set OpenGL parameters */
|
|
|
|
state->window_flags |= SDL_WINDOW_OPENGL;
|
2009-10-21 14:51:42 +00:00
|
|
|
state->gl_red_size = 5;
|
|
|
|
state->gl_green_size = 5;
|
|
|
|
state->gl_blue_size = 5;
|
|
|
|
state->gl_depth_size = 16;
|
2009-10-28 06:08:48 +00:00
|
|
|
state->gl_double_buffer = 1;
|
2006-07-18 07:49:51 +00:00
|
|
|
if (fsaa) {
|
2009-10-21 14:51:42 +00:00
|
|
|
state->gl_multisamplebuffers = 1;
|
|
|
|
state->gl_multisamplesamples = fsaa;
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2009-12-15 20:53:09 +00:00
|
|
|
if (accel >= 0) {
|
|
|
|
state->gl_accelerated = accel;
|
|
|
|
}
|
2009-10-21 14:51:42 +00:00
|
|
|
|
2012-12-31 10:26:38 -08:00
|
|
|
if (!SDLTest_CommonInit(state)) {
|
2006-07-19 04:24:41 +00:00
|
|
|
quit(2);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
|
|
|
|
/* Create OpenGL context */
|
|
|
|
context = SDL_GL_CreateContext(state->windows[0]);
|
|
|
|
if (!context) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_GL_CreateContext(): %s\n", SDL_GetError());
|
2006-07-19 04:24:41 +00:00
|
|
|
quit(2);
|
|
|
|
}
|
|
|
|
|
2006-08-05 17:09:42 +00:00
|
|
|
if (state->render_flags & SDL_RENDERER_PRESENTVSYNC) {
|
2012-08-01 20:29:36 -04:00
|
|
|
/* try late-swap-tearing first. If not supported, try normal vsync. */
|
|
|
|
if (SDL_GL_SetSwapInterval(-1) == -1) {
|
|
|
|
SDL_GL_SetSwapInterval(1);
|
|
|
|
}
|
2006-07-18 07:49:51 +00:00
|
|
|
} else {
|
2012-08-01 20:29:36 -04:00
|
|
|
SDL_GL_SetSwapInterval(0); /* disable vsync. */
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
2011-02-10 12:14:37 -08:00
|
|
|
SDL_GetCurrentDisplayMode(0, &mode);
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("Screen BPP : %d\n", SDL_BITSPERPIXEL(mode.format));
|
|
|
|
SDL_Log("Swap Interval : %d\n", SDL_GL_GetSwapInterval());
|
2013-09-20 13:43:00 -04:00
|
|
|
SDL_GetWindowSize(state->windows[0], &dw, &dh);
|
|
|
|
SDL_Log("Window Size : %d,%d\n", dw, dh);
|
|
|
|
SDL_GL_GetDrawableSize(state->windows[0], &dw, &dh);
|
|
|
|
SDL_Log("Draw Size : %d,%d\n", dw, dh);
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("\n");
|
|
|
|
SDL_Log("Vendor : %s\n", glGetString(GL_VENDOR));
|
|
|
|
SDL_Log("Renderer : %s\n", glGetString(GL_RENDERER));
|
|
|
|
SDL_Log("Version : %s\n", glGetString(GL_VERSION));
|
|
|
|
SDL_Log("Extensions : %s\n", glGetString(GL_EXTENSIONS));
|
|
|
|
SDL_Log("\n");
|
2006-07-18 07:49:51 +00:00
|
|
|
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_RED_SIZE: requested %d, got %d\n", 5, value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_RED_SIZE: %s\n", SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_GREEN_SIZE: requested %d, got %d\n", 5, value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_GREEN_SIZE: %s\n", SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_BLUE_SIZE: requested %d, got %d\n", 5, value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_BLUE_SIZE: %s\n", SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_DEPTH_SIZE: requested %d, got %d\n", 16, value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_DEPTH_SIZE: %s\n", SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2006-07-18 07:49:51 +00:00
|
|
|
if (fsaa) {
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_MULTISAMPLEBUFFERS: requested 1, got %d\n", value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_MULTISAMPLEBUFFERS: %s\n",
|
2009-05-23 22:41:08 +00:00
|
|
|
SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2009-05-23 22:41:08 +00:00
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_MULTISAMPLESAMPLES: requested %d, got %d\n", fsaa,
|
2009-05-23 22:41:08 +00:00
|
|
|
value);
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_MULTISAMPLESAMPLES: %s\n",
|
2009-05-23 22:41:08 +00:00
|
|
|
SDL_GetError());
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
}
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2009-12-15 20:53:09 +00:00
|
|
|
if (accel >= 0) {
|
|
|
|
status = SDL_GL_GetAttribute(SDL_GL_ACCELERATED_VISUAL, &value);
|
|
|
|
if (!status) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("SDL_GL_ACCELERATED_VISUAL: requested %d, got %d\n", accel,
|
2009-12-15 20:53:09 +00:00
|
|
|
value);
|
|
|
|
} else {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
|
2009-12-15 20:53:09 +00:00
|
|
|
SDL_GetError());
|
|
|
|
}
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Set rendering settings */
|
2006-07-18 07:49:51 +00:00
|
|
|
glMatrixMode(GL_PROJECTION);
|
|
|
|
glLoadIdentity();
|
|
|
|
glOrtho(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);
|
|
|
|
glMatrixMode(GL_MODELVIEW);
|
|
|
|
glLoadIdentity();
|
|
|
|
glEnable(GL_DEPTH_TEST);
|
|
|
|
glDepthFunc(GL_LESS);
|
|
|
|
glShadeModel(GL_SMOOTH);
|
2013-09-20 13:43:00 -04:00
|
|
|
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Main render loop */
|
2006-07-18 07:49:51 +00:00
|
|
|
frames = 0;
|
2006-07-19 04:24:41 +00:00
|
|
|
then = SDL_GetTicks();
|
|
|
|
done = 0;
|
2006-07-18 07:49:51 +00:00
|
|
|
while (!done) {
|
2006-07-19 04:24:41 +00:00
|
|
|
/* Check for events */
|
2006-07-18 07:49:51 +00:00
|
|
|
++frames;
|
2006-07-19 04:24:41 +00:00
|
|
|
while (SDL_PollEvent(&event)) {
|
2012-12-31 10:26:38 -08:00
|
|
|
SDLTest_CommonEvent(state, &event, &done);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
for (i = 0; i < state->num_windows; ++i) {
|
|
|
|
int w, h;
|
|
|
|
SDL_GL_MakeCurrent(state->windows[i], context);
|
2013-09-20 13:43:00 -04:00
|
|
|
SDL_GL_GetDrawableSize(state->windows[i], &w, &h);
|
2006-07-19 04:24:41 +00:00
|
|
|
glViewport(0, 0, w, h);
|
|
|
|
Render();
|
|
|
|
SDL_GL_SwapWindow(state->windows[i]);
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
|
|
|
|
/* Print out some timing information */
|
|
|
|
now = SDL_GetTicks();
|
|
|
|
if (now > then) {
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_Log("%2.2f frames per second\n",
|
2006-07-19 04:24:41 +00:00
|
|
|
((double) frames * 1000) / (now - then));
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
2006-07-19 04:24:41 +00:00
|
|
|
quit(0);
|
2007-08-12 16:26:10 +00:00
|
|
|
return 0;
|
2006-07-18 07:49:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#else /* HAVE_OPENGL */
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2013-08-14 23:30:10 -07:00
|
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "No OpenGL support on this system\n");
|
2006-07-18 07:49:51 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* HAVE_OPENGL */
|