mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Add few interface functions for Anroid port.
This commit is contained in:
parent
a3c59d643c
commit
9de2dea9e0
40
GLideN64.cpp
40
GLideN64.cpp
|
@ -197,6 +197,46 @@ EXPORT void CALL ResizeVideoOutput(int Width, int Height)
|
|||
{
|
||||
}
|
||||
|
||||
EXPORT void CALL SetFrameSkipping(bool autoSkip, int maxSkips)
|
||||
{
|
||||
}
|
||||
|
||||
EXPORT void CALL SetStretchVideo(bool stretch)
|
||||
{
|
||||
}
|
||||
|
||||
EXPORT void CALL StartGL()
|
||||
{
|
||||
OGL_Start();
|
||||
}
|
||||
|
||||
EXPORT void CALL StopGL()
|
||||
{
|
||||
OGL_Stop();
|
||||
}
|
||||
|
||||
EXPORT void CALL ResizeGL(int width, int height)
|
||||
{
|
||||
/*
|
||||
int videoWidth = width;
|
||||
int videoHeight = height;
|
||||
|
||||
if (!config.stretchVideo) {
|
||||
const float ratio = (config.romPAL ? 9.0f/11.0f : 0.75f);
|
||||
videoWidth = (int) (height / ratio);
|
||||
if (videoWidth > width) {
|
||||
videoWidth = width;
|
||||
videoHeight = (int) (width * ratio);
|
||||
}
|
||||
}
|
||||
|
||||
int x = (width - videoWidth) / 2;
|
||||
int y = (height - videoHeight) / 2;
|
||||
|
||||
OGL_ResizeWindow(x, y, videoWidth, videoHeight);
|
||||
*/
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
#endif // MUPENPLUSAPI
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user