src/video/windows/SDL_windowsframebuffer.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Feb 2011 13:59:59 -0800
changeset 5297 1800dc39b74c
parent 5262 b530ef003506
child 5535 96594ac5fd1a
permissions -rw-r--r--
Changed the concept of a render clip rect to a render viewport.
The render viewport is automatically re-centered when the window changes size, so applications that don't care will not have to handle recalculating their rendering coordinates.

Fixed API for drawing and filling multiple rectangles - the parameter should be an array of rects, not an array of pointers to rects.

Fixed API for updating window rects for consistency with other APIs - the order is pointer to array followed by count in array.
slouken@5175
     1
/*
slouken@5175
     2
    SDL - Simple DirectMedia Layer
slouken@5262
     3
    Copyright (C) 1997-2011 Sam Lantinga
slouken@5175
     4
slouken@5175
     5
    This library is free software; you can redistribute it and/or
slouken@5175
     6
    modify it under the terms of the GNU Lesser General Public
slouken@5175
     7
    License as published by the Free Software Foundation; either
slouken@5175
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@5175
     9
slouken@5175
    10
    This library is distributed in the hope that it will be useful,
slouken@5175
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@5175
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@5175
    13
    Lesser General Public License for more details.
slouken@5175
    14
slouken@5175
    15
    You should have received a copy of the GNU Lesser General Public
slouken@5175
    16
    License along with this library; if not, write to the Free Software
slouken@5175
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@5175
    18
slouken@5175
    19
    Sam Lantinga
slouken@5175
    20
    slouken@libsdl.org
slouken@5175
    21
*/
slouken@5175
    22
#include "SDL_config.h"
slouken@5175
    23
slouken@5175
    24
extern int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch);
slouken@5297
    25
extern int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, SDL_Rect * rects, int numrects);
slouken@5175
    26
extern void WIN_DestroyWindowFramebuffer(_THIS, SDL_Window * window);
slouken@5175
    27
slouken@5175
    28
/* vi: set ts=4 sw=4 expandtab: */