Commit 12374983 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

fixed spelling errors in comments and printouts

parent a16753f2
......@@ -158,7 +158,7 @@ Context::Context(void)
throw(GemException(errstring));
}
/* update the stack variables (late initalization) */
/* update the stack variables (late initialization) */
push(); pop();
GemMan::m_windowState++;
}
......
......@@ -45,7 +45,7 @@ WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
CLASS
WindowInfo
All of the relavent information about an OpenGL window
All of the relevant information about an OpenGL window
DESCRIPTION
......
......@@ -100,7 +100,7 @@ AGLContext SetupAGLFullScreen (GDHandle display, short * pWidth, short * pHeight
// -------------------------------------------------------------------------------------------------------------
// Takes device # and geometry request and tries to build best context and drawable
// If requested device does not work, will start at first device and walk down devices
// looking for first one that satisfies requirments
// looking for first one that satisfies requirements
// Devices are numbered in order that DMGetFirstScreenDevice/DMGetNextScreenDevice returns,
// fullscreen devices are numbered after this, but they will be searched first if fFullscreen == true,
// they will not be searched in the non-fullscreen case
......@@ -133,14 +133,14 @@ static Boolean CheckAllDeviceRenderers (long* pVRAM, long* pTextureRAM, GLint* p
static Boolean CheckWindowExtents (GDHandle hGD, short width, short height);
// Destroys drawable and context
// Ouputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
// Outputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo pcontextInfo);
// same as above except that it takes a window as input and attempts to build requested conext on that
OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructGLWindowInfo pcontextInfo, AGLContext aglShareContext);
// same as above but destorys a context that was associated with an existing window, window is left intacted
// same as above but destroys a context that was associated with an existing window, window is left intacted
OSStatus DestroyGLFromWindow (AGLContext* paglContext, pstructGLWindowInfo pcontextInfo);
// Handle reporting of agl errors, error code is passed through
......@@ -639,7 +639,7 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
#ifdef DEBUG
post("MAC: BuildGLonWindow: fDraggable= false");
#endif
if ((numDevices > 1) || (numDevices == 0)) // this window spans mulitple devices thus will be software only
if ((numDevices > 1) || (numDevices == 0)) // this window spans multiple devices thus will be software only
{
#ifdef DEBUG
post("MAC: BuildGLonWindow: numDevices>1 || numDevices ==0");
......@@ -681,7 +681,7 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
}
// do agl
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existance of OpenGL
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existence of OpenGL
{
#ifdef DEBUG
post("MAC: BuildGLonWindow: OpenGL not installed");
......@@ -747,7 +747,8 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
// BuildGL
// Takes device and geometry request and tries to build best context and drawable
// if device does not work will walk down devices looking for first one that satisfies requirments
// if device does not work will walk down devices looking for first one that
// satisfies requirements
// Inputs: *pnumDevice: 0 any device, # attempt that device first, then any device
// *pcontextInfo: request and requirements for cotext and drawable
......@@ -848,7 +849,7 @@ OSStatus BuildGL (AGLDrawable* paglDraw, AGLContext* paglContext,
// DestroyGL
// Destroys drawable and context
// Ouputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
// Outputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo pcontextInfo)
{
......@@ -864,7 +865,7 @@ OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInf
// DestroyGLFromWindow
// Destroys context that waas allocated with BuildGLFromWindow
// Ouputs: *paglContext should be NULL on exit
// Outputs: *paglContext should be NULL on exit
OSStatus DestroyGLFromWindow (AGLContext* paglContext, pstructGLWindowInfo pcontextInfo)
{
......@@ -977,7 +978,7 @@ void DumpCurrent (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo
}
pcontextInfo->fmt = 0;
if (*paglDraw && !(pcontextInfo->fFullscreen && CheckMacOSX ())) // do not destory a window on DSp if in Mac OS X
if (*paglDraw && !(pcontextInfo->fFullscreen && CheckMacOSX ())) // do not destroy a window on DSp if in Mac OS X
// since there is no window built in X
DisposeWindow (GetWindowFromPort (*paglDraw));
......@@ -1206,7 +1207,7 @@ static OSStatus BuildGLContext (AGLDrawable* paglDraw, AGLContext* paglContext,
{
OSStatus err = noErr;
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existance of OpenGL
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existence of OpenGL
{
post("OpenGL not installed");
return noErr;
......
......@@ -79,7 +79,7 @@ void gemlist_info :: render(GemState *state) {
// normalisation
// for (i=0; i<16; i++) mi[i] /= mi[15];
// not usefull because I never saw mi[15]!=1; if this change, un-comment this normalisation procedure
// not useful because I never saw mi[15]!=1; if this change, un-comment this normalisation procedure
ScaleX = sqrt (mi[0] * mi[0] + mi[4] * mi[4] + mi[8] * mi[8]);
mi[0] /= ScaleX; // Normalise X
mi[4] /= ScaleX;
......
......@@ -104,8 +104,8 @@ void gemreceive::add_element(t_gemreceive_proxy*bind_list, t_bind_element*elemen
elements=elements->next;
}
debug_post("inserting after %x:%g", last, (last ? (last->priority):0));
debug_post("inserting befor %x:%g", elements, (elements?(elements->priority):0));
debug_post("inserting after %x:%g", last, (last ? (last->priority):0));
debug_post("inserting before %x:%g", elements, (elements?(elements->priority):0));
element->next=elements;
if(last) {
......
......@@ -105,7 +105,7 @@ class GEM_EXTERN gemwin : public CPPExtern
void fogRangeMess(float start, float end);
void fogColorMess(float red, float green, float blue, float alpha);
void cursorMess(float setting);
void topmostMess(float settting);
void topmostMess(float setting);
void blurMess(float setting);
void fpsMess();
void fsaaMess(int value);
......
......@@ -203,7 +203,7 @@ void GemMan :: createContext(char* disp)
s_windowClock = clock_new(NULL, reinterpret_cast<t_method>(GemMan::dispatchWinmessCallback));
if (!m_windowContext && !createConstWindow(disp))
{
error("GEM: A serious error occured creating const Context");
error("GEM: A serious error occurred creating const Context");
error("GEM: Continue at your own risk!");
m_windowContext = 0;
} else
......@@ -1409,7 +1409,7 @@ void GemMan :: printInfo()
if (glGetString(GL_EXTENSIONS)){
char *text = new char [strlen((char *)glGetString(GL_EXTENSIONS)) + 1];
strcpy(text,(char *)glGetString(GL_EXTENSIONS));
char *token = strtok(text, " "); // Parse 'text' For Words, Seperated By " " (spaces)
char *token = strtok(text, " "); // Parse 'text' For Words, Separated By " " (spaces)
while(token != NULL) { // While The Token Isn't NULL
post("Extensions: %s", token); // Print extension string
token = strtok(NULL, " ");
......
......@@ -37,13 +37,13 @@ void RGB_to_YCbCr_altivec(const unsigned char *rgbdata, size_t RGB_size,
1, 4, 7, 10, 13, 16, 19, 22 /* G0..G7 */);
vector unsigned char vPerm2 =
static_cast<vector unsigned char>( 2, 5, 8, 11, 14, 17, 20, 23, /* B0..B7 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
vector unsigned char vPerm3 =
static_cast<vector unsigned char>( 8, 11, 14, 17, 20, 23, 26, 29, /* R8..R15 */
9, 12, 15, 18, 21, 24, 27, 30 /* G8..G15 */);
vector unsigned char vPerm4 =
static_cast<vector unsigned char>(10, 13, 16, 19, 22, 25, 28, 31, /* B8..B15 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
/* Load the equation constants. */
vector signed short vConst1 =
......@@ -71,14 +71,14 @@ void RGB_to_YCbCr_altivec(const unsigned char *rgbdata, size_t RGB_size,
for ( i = 0; i < (RGB_size/sizeof(vector unsigned char)); i+=3 ) {
/* Load the 3 RGB input vectors and seperate into red,
/* Load the 3 RGB input vectors and separate into red,
green and blue from the interleaved format. */
tc0 = vec_perm( RGB_ptr[i], RGB_ptr[i+1], vPerm1 ); /* R0..R7 G0..G7 */
tc1 = vec_perm( RGB_ptr[i], RGB_ptr[i+1], vPerm2 ); /* B0..B7 */
tc2 = vec_perm( RGB_ptr[i+1], RGB_ptr[i+2], vPerm3 ); /* R8..R15 G8..G15 */
tc3 = vec_perm( RGB_ptr[i+1], RGB_ptr[i+2], vPerm4 ); /* B8..B15 */
/* Unpack to 16 bit arithmatic for converstion. */
/* Unpack to 16 bit arithmetic for conversion. */
tr0 = static_cast<vector signed short>(vec_mergeh( z0, tc0 )); // tr0 = R0 .. R7
tg0 = static_cast<vector signed short>(vec_mergel( z0, tc0 )); // tg0 = G0 .. G7
tb0 = static_cast<vector signed short>(vec_mergeh( z0, tc1 )); // tb0 = B0 .. B7
......@@ -148,13 +148,13 @@ void RGBA_to_YCbCr_altivec(const unsigned char *rgbadata, size_t RGBA_size,
1, 5, 9, 13, 17, 21, 25, 29 /* G0..G7 */);
vector unsigned char vPerm2 =
static_cast<vector unsigned char>( 2, 6, 10, 14, 18, 22, 26, 30, /* B0..B7 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
vector unsigned char vPerm3 =
static_cast<vector unsigned char>( 8, 12, 16, 20, 24, 28, 32, 36, /* R8..R15 */
9, 13, 17, 21, 25, 29, 33, 37 /* G8..G15 */);
vector unsigned char vPerm4 =
static_cast<vector unsigned char>(10, 14, 18, 22, 26, 30, 34, 38, /* B8..B15 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
/* Load the equation constants. */
vector signed short vConst1 =
......@@ -182,14 +182,14 @@ void RGBA_to_YCbCr_altivec(const unsigned char *rgbadata, size_t RGBA_size,
for ( i = 0; i < (RGBA_size/sizeof(vector unsigned char)); i+=3 ) {
/* Load the 3 RGB input vectors and seperate into red,
/* Load the 3 RGB input vectors and separate into red,
green and blue from the interleaved format. */
tc0 = vec_perm( RGBA_ptr[i], RGBA_ptr[i+1], vPerm1 ); /* R0..R7 G0..G7 */
tc1 = vec_perm( RGBA_ptr[i], RGBA_ptr[i+1], vPerm2 ); /* B0..B7 */
tc2 = vec_perm( RGBA_ptr[i+1], RGBA_ptr[i+2], vPerm3 ); /* R8..R15 G8..G15 */
tc3 = vec_perm( RGBA_ptr[i+1], RGBA_ptr[i+2], vPerm4 ); /* B8..B15 */
/* Unpack to 16 bit arithmatic for converstion. */
/* Unpack to 16 bit arithmetic for conversion. */
tr0 = static_cast<vector signed short>(vec_mergeh( z0, tc0 )); /* tr0 = R0 .. R7 */
tg0 = static_cast<vector signed short>(vec_mergel( z0, tc0 )); /* tg0 = G0 .. G7 */
tb0 = static_cast<vector signed short>(vec_mergeh( z0, tc1 )); /* tb0 = B0 .. B7 */
......@@ -260,13 +260,13 @@ void BGR_to_YCbCr_altivec(const unsigned char *bgrdata, size_t BGR_size,
1, 4, 7, 10, 13, 16, 19, 22 /* G0..G7 */);
vector unsigned char vPerm2 =
static_cast<vector unsigned char>( 2, 5, 8, 11, 14, 17, 20, 23, /* B0..B7 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
vector unsigned char vPerm3 =
static_cast<vector unsigned char>( 8, 11, 14, 17, 20, 23, 26, 29, /* R8..R15 */
9, 12, 15, 18, 21, 24, 27, 30 /* G8..G15 */);
vector unsigned char vPerm4 =
static_cast<vector unsigned char>(10, 13, 16, 19, 22, 25, 28, 31, /* B8..B15 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
/* Load the equation constants. */
vector signed short vConst1 =
......@@ -294,14 +294,14 @@ void BGR_to_YCbCr_altivec(const unsigned char *bgrdata, size_t BGR_size,
for ( i = 0; i < (BGR_size/sizeof(vector unsigned char)); i+=3 ) {
/* Load the 3 RGB input vectors and seperate into red,
/* Load the 3 RGB input vectors and separate into red,
green and blue from the interleaved format. */
tc0 = vec_perm( BGR_ptr[i], BGR_ptr[i+1], vPerm1 ); /* R0..R7 G0..G7 */
tc1 = vec_perm( BGR_ptr[i], BGR_ptr[i+1], vPerm2 ); /* B0..B7 */
tc2 = vec_perm( BGR_ptr[i+1], BGR_ptr[i+2], vPerm3 ); /* R8..R15 G8..G15 */
tc3 = vec_perm( BGR_ptr[i+1], BGR_ptr[i+2], vPerm4 ); /* B8..B15 */
/* Unpack to 16 bit arithmatic for converstion. */
/* Unpack to 16 bit arithmetic for conversion. */
tr0 = static_cast<vector signed short>(vec_mergeh( z0, tc0 )); /* tr0 = R0 .. R7 */
tg0 = static_cast<vector signed short>(vec_mergel( z0, tc0 )); /* tg0 = G0 .. G7 */
tb0 = static_cast<vector signed short>(vec_mergeh( z0, tc1 )); /* tb0 = B0 .. B7 */
......@@ -373,7 +373,7 @@ void BGRA_to_YCbCr_altivec(const unsigned char *bgradata, size_t BGRA_size,
2, 6, 10, 14, 18, 22, 26, 30 /* G0..G7 */);
vector unsigned char vPerm2 =
static_cast<vector unsigned char>( 1, 5, 9, 13, 17, 21, 25, 29, /* R0..R7 */
0, 0, 0, 0, 0, 0, 0, 0 /* dont care */);
0, 0, 0, 0, 0, 0, 0, 0 /* don't care */);
/* Load the equation constants. */
vector signed short vConst1 =
......@@ -413,7 +413,7 @@ void BGRA_to_YCbCr_altivec(const unsigned char *bgradata, size_t BGRA_size,
for ( i = 0; i < (BGRA_size/sizeof(vector unsigned char)); i++ ) {
/* Load the 4 BGRA input vectors and seperate into red,
/* Load the 4 BGRA input vectors and separate into red,
green and blue from the interleaved format. */
const vector unsigned char *vec1 = BGRA_ptr++;
const vector unsigned char *vec2 = BGRA_ptr++;
......@@ -425,7 +425,7 @@ void BGRA_to_YCbCr_altivec(const unsigned char *bgradata, size_t BGRA_size,
tc2 = vec_perm( *vec3, *vec4, vPerm1 ); // B8..B15 G8..G15
tc3 = vec_perm( *vec3, *vec4, vPerm2 ); // R8..R15
/* Unpack to 16 bit arithmatic for conversion. */
/* Unpack to 16 bit arithmetic for conversion. */
tr0 = static_cast<vector signed short>(vec_mergeh( z0, tc0 )); /* tr0 = R0 .. R7 */
tg0 = static_cast<vector signed short>(vec_mergel( z0, tc0 )); /* tg0 = G0 .. G7 */
tb0 = static_cast<vector signed short>(vec_mergeh( z0, tc1 )); /* tb0 = B0 .. B7 */
......
......@@ -126,7 +126,7 @@ void RGBA_to_UYVY_SSE2(const unsigned char *rgbadata,
RGRG0 = _mm_unpacklo_epi64(RGRG_BABA0, RGRG_BABA1); /* R0 G0 R2 G2 R1 G1 R3 G3 */
BABA0 = _mm_unpackhi_epi64(RGRG_BABA0, RGRG_BABA1); /* B0 A0 B2 A2 B1 A1 B3 A3 */
// get Y for the 1st 4 pixels (thats 32bit)
// get Y for the 1st 4 pixels (that's 32bit)
// Y_RG32 = _mm_madd_epi16(RGRG0, RG2Y); /* R0*a+G0*b R2*a+G2*b R1*a+G1*b R3*a+G3*b */
// Y_BA32 = _mm_madd_epi16(BABA0, BA2Y); /* B0*c+A0*d B2*c+A2*d B1*c+A1*d B3*c+A3*d */
Y0 = _mm_add_epi32(_mm_madd_epi16(RGRG0, RG2Y), _mm_madd_epi16(BABA0, BA2Y));
......@@ -143,7 +143,7 @@ void RGBA_to_UYVY_SSE2(const unsigned char *rgbadata,
RGRG1 = _mm_unpacklo_epi64(RGRG_BABA0, RGRG_BABA1); /* R4 G4 R6 G6 R5 G5 R7 G7 */
BABA1 = _mm_unpackhi_epi64(RGRG_BABA0, RGRG_BABA1); /* B4 A4 B6 A6 B5 A5 B7 A7 */
// get Y for the 2nd 4 pixels (thats 32bit)
// get Y for the 2nd 4 pixels (that's 32bit)
// Y_RG32 = _mm_madd_epi16(RGRG1, RG2Y); /* R4*a+G4*b R6*a+G6*b R5*a+G5*b R7*a+G7*b */
// Y_BA32 = _mm_madd_epi16(BABA1, BA2Y); /* B4*c+A4*d B6*c+A6*d B5*c+A5*d B7*c+A7*d */
Y1 = _mm_add_epi32(_mm_madd_epi16(RGRG1, RG2Y), _mm_madd_epi16(BABA1, BA2Y));
......
......@@ -50,7 +50,7 @@ class GEM_EXTERN cuboid : public GemShape
void heightMess(float sizey);
//////////
// The widht of the object
// The width of the object
void widthMess(float sizez);
//////////
......
......@@ -32,7 +32,7 @@
const float tube::TWO_PI = 8.f * atan(1.);
/* only gcc allows to allocate arrays of non-constant length, like:
/* only gcc allows one to allocate arrays of non-constant length, like:
* int i;
* float array[i];
* other compilers will need to know the array-size at runtime!
......
......@@ -93,7 +93,7 @@ AGLContext SetupAGLFullScreen (GDHandle display, short * pWidth, short * pHeight
// -------------------------------------------------------------------------------------------------------------
// Takes device # and geometry request and tries to build best context and drawable
// If requested device does not work, will start at first device and walk down devices
// looking for first one that satisfies requirments
// looking for first one that satisfies requirements
// Devices are numbered in order that DMGetFirstScreenDevice/DMGetNextScreenDevice returns,
// fullscreen devices are numbered after this, but they will be searched first if fFullscreen == true,
// they will not be searched in the non-fullscreen case
......@@ -126,14 +126,14 @@ static Boolean CheckAllDeviceRenderers (long* pVRAM, long* pTextureRAM, GLint* p
static Boolean CheckWindowExtents (GDHandle hGD, short width, short height);
// Destroys drawable and context
// Ouputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
// Outputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo pcontextInfo);
// same as above except that it takes a window as input and attempts to build requested conext on that
OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructGLWindowInfo pcontextInfo, AGLContext aglShareContext);
// same as above but destorys a context that was associated with an existing window, window is left intacted
// same as above but destroys a context that was associated with an existing window, window is left intacted
OSStatus DestroyGLFromWindow (AGLContext* paglContext, pstructGLWindowInfo pcontextInfo);
// Handle reporting of agl errors, error code is passed through
......@@ -274,7 +274,7 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
if (!pcontextInfo->fDraggable) // if numDevices > 1 then we will only be using the software renderer otherwise check only window device
{
verbose(2,"MAC: BuildGLonWindow: fDraggable= false");
if ((numDevices > 1) || (numDevices == 0)) // this window spans mulitple devices thus will be software only
if ((numDevices > 1) || (numDevices == 0)) // this window spans multiple devices thus will be software only
{
verbose(2,"MAC: BuildGLonWindow: numDevices>1 || numDevices ==0");
// software renderer
......@@ -305,7 +305,7 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
}
// do agl
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existance of OpenGL
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existence of OpenGL
{
verbose(2,"MAC: BuildGLonWindow: OpenGL not installed");
return NULL;
......@@ -357,7 +357,7 @@ OSStatus BuildGLFromWindow (WindowPtr pWindow, AGLContext* paglContext, pstructG
// BuildGL
// Takes device and geometry request and tries to build best context and drawable
// if device does not work will walk down devices looking for first one that satisfies requirments
// if device does not work will walk down devices looking for first one that satisfies requirements
// Inputs: *pnumDevice: 0 any device, # attempt that device first, then any device
// *pcontextInfo: request and requirements for cotext and drawable
......@@ -458,7 +458,7 @@ OSStatus BuildGL (AGLDrawable* paglDraw, AGLContext* paglContext,
// DestroyGL
// Destroys drawable and context
// Ouputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
// Outputs: *paglDraw, *paglContext and *pdspContext should be 0 on exit
OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo pcontextInfo)
{
......@@ -474,7 +474,7 @@ OSStatus DestroyGL (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInf
// DestroyGLFromWindow
// Destroys context that waas allocated with BuildGLFromWindow
// Ouputs: *paglContext should be NULL on exit
// Outputs: *paglContext should be NULL on exit
OSStatus DestroyGLFromWindow (AGLContext* paglContext, pstructGLWindowInfo pcontextInfo)
{
......@@ -587,7 +587,7 @@ void DumpCurrent (AGLDrawable* paglDraw, AGLContext* paglContext, pstructGLInfo
}
pcontextInfo->fmt = 0;
if (*paglDraw && !(pcontextInfo->fFullscreen && CheckMacOSX ())) // do not destory a window on DSp if in Mac OS X
if (*paglDraw && !(pcontextInfo->fFullscreen && CheckMacOSX ())) // do not destroy a window on DSp if in Mac OS X
// since there is no window built in X
DisposeWindow (GetWindowFromPort (*paglDraw));
......@@ -816,7 +816,7 @@ static OSStatus BuildGLContext (AGLDrawable* paglDraw, AGLContext* paglContext,
{
OSStatus err = noErr;
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existance of OpenGL
if (reinterpret_cast<Ptr>(kUnresolvedCFragSymbolAddress) == reinterpret_cast<Ptr>(aglChoosePixelFormat)) // check for existence of OpenGL
{
error("OpenGL not installed");
return noErr;
......
......@@ -137,7 +137,7 @@
* @subsection sec_icon_location Icon location
*
* The exact location where the application should look for the
* plugin is platform dependant.
* plugin is platform dependent.
*
* For Windows platforms, the icon should be at the same place as
* the plugin containing the effect.
......@@ -264,7 +264,7 @@ void f0r_deinit();
* List of supported color models.
*
* Note: the color models are endian independent, because the
* color components are defined by their positon in memory, not
* color components are defined by their position in memory, not
* by their significance in an uint32_t value.
*
* For effects that work on the color components,
......@@ -313,7 +313,7 @@ void f0r_deinit();
/**
* In PACKED32, each pixel is represented by 4 consecutive
* bytes, but it is not defined how the color componets are
* bytes, but it is not defined how the color components are
* stored. The true color format could be RGBA8888,
* BGRA8888, a packed 32 bit YUV format, or any other
* color format that stores pixels in 32 bit.
......
......@@ -176,7 +176,8 @@ void pix_blur :: processYUVImage(imageStruct &image)
imageGain = static_cast<int>(255. - (m_blurf * 255.));
hlength = image.xsize/2;
//unroll this, add register temps and schedule the ops better to remove the data depedencies
//unroll this, add register temps and schedule the ops better to remove the
//data dependencies
for (h=0; h<image.ysize-1; h++){
for(w=0; w<hlength; w++){
//8bit * 8bit = 16bit
......
......@@ -193,7 +193,7 @@ void pix_cubemap :: render(GemState *state) {
if(!m_textureOnOff)return;
/* here comes the work: a new image has to be transfered from main memory to GPU and attached to a texture object */
/* here comes the work: a new image has to be transferred from main memory to GPU and attached to a texture object */
pixBlock*img=NULL;
state->get(GemState::_PIX, img);
if(img) {
......
......@@ -523,7 +523,7 @@ void pix_dot :: scaleMess(float state)
}
m_scale=state; /* used to be as (int)cast, but i have removed this...*/
alreadyInit = 0;
//myImage.reallocate(dataSize);we dont need to reallocate the image, since nothing changed
//myImage.reallocate(dataSize);we don't need to reallocate the image, since nothing changed
myImage.setBlack();
free(sharedbuffer); sharedbuffer=NULL;
free(pattern); pattern=NULL;
......
......@@ -115,7 +115,7 @@ class GEM_EXTERN pix_film : public GemBase
int m_format;
//////////
// frame infromation
// frame information
int m_numFrames;
t_float m_reqFrame;
int m_curFrame;
......
......@@ -123,7 +123,7 @@ class GEM_EXTERN pix_filmOS : public GemBase
int m_auto;
//////////
// frame infromation
// frame information
int m_numFrames;
int m_reqFrame;
int m_curFrame;
......
......@@ -7,7 +7,7 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// See file GEM.LICENSE.TERMS for further informations on licensing terms.
// See file GEM.LICENSE.TERMS for further information on licensing terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
......
......@@ -184,7 +184,8 @@ void pix_motionblur :: processYUVImage(imageStruct &image)
imageGain = m_blur0;
hlength = image.xsize/2;
//unroll this, add register temps and schedule the ops better to remove the data depedencies
//unroll this, add register temps and schedule the ops better to remove the
//data dependencies
// JMZ: i am not sure whether i really understand what is going on here
for (h=0; h<image.ysize-1; h++){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment