Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
904e7b45
Commit
904e7b45
authored
Jun 17, 2010
by
Paul Hunkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks to the libsdl side
parent
d4cfca1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
SDL_androidgl.c
src/video/android/SDL_androidgl.c
+12
-4
No files found.
src/video/android/SDL_androidgl.c
View file @
904e7b45
...
...
@@ -36,12 +36,13 @@
#include <android/log.h>
#include <pthread.h>
/*
These things are in the JNI android support
*/
extern
pthread_mutex_t
mSDLRenderMutex
;
extern
pthread_cond_t
mSDLRenderCondition
;
/* GL functions */
int
Android_GL_LoadLibrary
(
_THIS
,
const
char
*
path
){
...
...
@@ -67,7 +68,7 @@ int *Android_GL_GetVisual(_THIS, Display * display, int screen){
SDL_GLContext
Android_GL_CreateContext
(
_THIS
,
SDL_Window
*
window
){
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_CreateContext
\n
"
);
return
NULL
;
return
1
;
}
int
Android_GL_MakeCurrent
(
_THIS
,
SDL_Window
*
window
,
...
...
@@ -87,7 +88,14 @@ int Android_GL_GetSwapInterval(_THIS){
}
void
Android_GL_SwapWindow
(
_THIS
,
SDL_Window
*
window
){
__android_log_print
(
ANDROID_LOG_INFO
,
"SDL"
,
"[STUB] GL_SwapWindow
\n
"
);
pthread_mutex_lock
(
&
mSDLRenderMutex
);
pthread_cond_wait
(
&
mSDLRenderCondition
,
&
mSDLRenderMutex
);
pthread_mutex_unlock
(
&
mSDLRenderMutex
);
//__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SwapWindow\n");
}
void
Android_GL_DeleteContext
(
_THIS
,
SDL_GLContext
context
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment