SDL_Libretro 0.1.0
SDL3-power libretro frontend.
Loading...
Searching...
No Matches
Functions
SDL_libretro_video.h File Reference

SDL_libretro - Video System. More...

Go to the source code of this file.

Functions

SDL_Surface * SDL_Libretro_CreateSurface (const SDL_Libretro *lr)
 Creates a new surface from the current libretro context.
 
float SDL_Libretro_GetAspectRatio (const SDL_Libretro *lr)
 Gets the aspect ratio for the libretro context.
 
SDL_LibretroFitMode SDL_Libretro_GetFitMode (const SDL_Libretro *lr)
 Gets how the frame is fit into the destination rectangle when rendered.
 
double SDL_Libretro_GetFPS (const SDL_Libretro *lr)
 Gets the frame rate the core expects to run at.
 
SDL_Renderer * SDL_Libretro_GetRenderer (const SDL_Libretro *lr)
 Get the renderer the context draws into.
 
int SDL_Libretro_GetRotation (const SDL_Libretro *lr)
 Gets the screen rotation requested by the core.
 
SDL_ScaleMode SDL_Libretro_GetScaleMode (const SDL_Libretro *lr)
 Gets the texture scale mode used when the libretro frame is scaled.
 
void SDL_Libretro_GetSize (const SDL_Libretro *lr, int *w, int *h)
 Gets the width and height of the core's current video frame.
 
SDL_Texture * SDL_Libretro_GetTexture (const SDL_Libretro *lr)
 Get the streaming texture that holds the core's most recent video frame.
 
bool SDL_Libretro_Render (SDL_Libretro *lr, SDL_Renderer *renderer, const SDL_FRect *dstRect)
 Render the libretro context in the given renderer.
 
bool SDL_Libretro_SaveScreenshot (const SDL_Libretro *lr, const char *path)
 Saves a PNG screenshot of the current frame.
 
bool SDL_Libretro_SetFitMode (SDL_Libretro *lr, SDL_LibretroFitMode mode)
 Sets how the frame is fit into the destination rectangle when rendered.
 
bool SDL_Libretro_SetRenderer (SDL_Libretro *lr, SDL_Renderer *renderer)
 Set the renderer the libretro context draws into.
 
bool SDL_Libretro_SetScaleMode (SDL_Libretro *lr, SDL_ScaleMode mode)
 Sets the texture scale mode used when the libretro frame is scaled.
 

Detailed Description

SDL_libretro - Video System.

Definition in file SDL_libretro_video.h.