src/video/x11/SDL_x11framebuffer.h
author Sam Lantinga
Fri, 04 Feb 2011 18:05:20 -0800
changeset 5182 073b86030262
child 5262 b530ef003506
permissions -rw-r--r--
Added the X11 framebuffer implementation. Simple! :)
slouken@5182
     1
/*
slouken@5182
     2
    SDL - Simple DirectMedia Layer
slouken@5182
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@5182
     4
slouken@5182
     5
    This library is free software; you can redistribute it and/or
slouken@5182
     6
    modify it under the terms of the GNU Lesser General Public
slouken@5182
     7
    License as published by the Free Software Foundation; either
slouken@5182
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@5182
     9
slouken@5182
    10
    This library is distributed in the hope that it will be useful,
slouken@5182
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@5182
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@5182
    13
    Lesser General Public License for more details.
slouken@5182
    14
slouken@5182
    15
    You should have received a copy of the GNU Lesser General Public
slouken@5182
    16
    License along with this library; if not, write to the Free Software
slouken@5182
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@5182
    18
slouken@5182
    19
    Sam Lantinga
slouken@5182
    20
    slouken@libsdl.org
slouken@5182
    21
*/
slouken@5182
    22
#include "SDL_config.h"
slouken@5182
    23
slouken@5182
    24
slouken@5182
    25
extern int X11_CreateWindowFramebuffer(_THIS, SDL_Window * window,
slouken@5182
    26
                                       Uint32 * format,
slouken@5182
    27
                                       void ** pixels, int *pitch);
slouken@5182
    28
extern int X11_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
slouken@5182
    29
                                       int numrects, SDL_Rect * rects);
slouken@5182
    30
extern void X11_DestroyWindowFramebuffer(_THIS, SDL_Window * window);
slouken@5182
    31
slouken@5182
    32
/* vi: set ts=4 sw=4 expandtab: */