PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
SDLUtility.h File Reference
#include "../../objects/PColor.h"
#include "SDL.h"
#include "PlatformWindow.h"

Go to the source code of this file.

Namespaces

namespace  SDLUtility
 These are SDL-specific utilities that don't fit into a single class very well.
 

Functions

SDL_Color SDLUtility::PColorToSDLColor (PColor pcolor)
 This converts between a PColor and an SDL color.
 
PColor SDLUtility::SDLColorToPColor (SDL_Color scolor)
 This converts between an SDL Color and a PColor

 
void SDLUtility::DrawPixel (SDL_Renderer *renderer, PlatformWidget *pwidget, int x, int y, PColor color)
 This sets a pixel to be a certain color.
 
void SDLUtility::DrawLine (SDL_Renderer *renderer, PlatformWidget *pwidget, int x1, int y1, int x2, int y2, PColor color)
 This sets a pixel to be a certain color.
 
Uint32 SDLUtility::GetPixel (SDL_Surface *surface, int x, int y)
 
PColor SDLUtility::GetPixelColor (SDL_Surface *surface, int x, int y)
 This extracts the color of a pixel.
 
Uint32 SDLUtility::GetPixel (SDL_Renderer *renderer, SDL_Texture *texture, int x, int y)
 
PColor SDLUtility::GetPixelColor (SDL_Renderer *renderer, SDL_Texture *texture, int x, int y)
 This extracts the color of a pixel.
 
int SDLUtility::WritePNG (SDL_Renderer *renderer, SDL_Rect *rect, const std::string fname)
 
Variant SDLUtility::GetCurrentScreenResolution ()
 
void SDLUtility::CopyToClipboard (std::string text)
 
Variant SDLUtility::CopyFromClipboard ()
 
int SDLUtility::PopupErrorBox (PlatformWindow *pwindow, const char *message)
 
long double SDLUtility::GetTimeHP ()
 
Variant SDLUtility::GetDriverList (bool printout=true)