src/SDL_android.h
author Sam Lantinga <slouken@libsdl.org>
Thu, 13 Jan 2011 15:10:17 -0800
changeset 4998 a514bfe6952a
parent 4996 8d7315668e35
child 5000 6a10693e66c3
permissions -rw-r--r--
The window is changed to reflect the actual screen dimensions, for now.
Implemented SDL_SetWindowTitle(), which turned out to be fairly complex
slouken@4994
     1
/*
slouken@4994
     2
    SDL - Simple DirectMedia Layer
slouken@4994
     3
    Copyright (C) 1997-2010 Sam Lantinga
slouken@4994
     4
slouken@4994
     5
    This library is free software; you can redistribute it and/or
slouken@4994
     6
    modify it under the terms of the GNU Lesser General Public
slouken@4994
     7
    License as published by the Free Software Foundation; either
slouken@4994
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@4994
     9
slouken@4994
    10
    This library is distributed in the hope that it will be useful,
slouken@4994
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@4994
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@4994
    13
    Lesser General Public License for more details.
slouken@4994
    14
slouken@4994
    15
    You should have received a copy of the GNU Lesser General Public
slouken@4994
    16
    License along with this library; if not, write to the Free Software
slouken@4994
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@4994
    18
slouken@4994
    19
    Sam Lantinga
slouken@4994
    20
    slouken@libsdl.org
slouken@4994
    21
*/
slouken@4994
    22
#include "SDL_config.h"
slouken@4994
    23
slouken@4994
    24
/* Set up for C function definitions, even when using C++ */
slouken@4994
    25
#ifdef __cplusplus
slouken@4994
    26
/* *INDENT-OFF* */
slouken@4994
    27
extern "C" {
slouken@4994
    28
/* *INDENT-ON* */
slouken@4994
    29
#endif
slouken@4994
    30
slouken@4994
    31
/* Interface from the SDL library into the Android Java activity */
slouken@4994
    32
void Android_JNI_CreateContext();
slouken@4994
    33
void Android_JNI_SwapWindow();
slouken@4998
    34
void Android_JNI_SetActivityTitle(const char *title);
slouken@4995
    35
slouken@4995
    36
// Audio support
slouken@4995
    37
int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
slouken@4996
    38
void* Android_JNI_GetAudioBuffer();
slouken@4996
    39
void Android_JNI_WriteAudioBuffer();
slouken@4995
    40
void Android_JNI_CloseAudioDevice();
slouken@4994
    41
slouken@4994
    42
/* Ends C function definitions when using C++ */
slouken@4994
    43
#ifdef __cplusplus
slouken@4994
    44
/* *INDENT-OFF* */
slouken@4994
    45
}
slouken@4994
    46
/* *INDENT-ON* */
slouken@4994
    47
#endif
slouken@4994
    48
slouken@4994
    49
/* vi: set ts=4 sw=4 expandtab: */