src/video/mir/SDL_mirframebuffer.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2017 00:22:23 -0700
changeset 11382 2c50e79b19e0
parent 10737 3406a0f8b041
child 11811 5d94cb6b24d3
permissions -rw-r--r--
Renaming of guard header names to quiet -Wreserved-id-macro
icculus@8153
     1
/*
icculus@8153
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
icculus@8153
     4
icculus@8153
     5
  This software is provided 'as-is', without any express or implied
icculus@8153
     6
  warranty.  In no event will the authors be held liable for any damages
icculus@8153
     7
  arising from the use of this software.
icculus@8153
     8
icculus@8153
     9
  Permission is granted to anyone to use this software for any purpose,
icculus@8153
    10
  including commercial applications, and to alter it and redistribute it
icculus@8153
    11
  freely, subject to the following restrictions:
icculus@8153
    12
icculus@8153
    13
  1. The origin of this software must not be misrepresented; you must not
icculus@8153
    14
     claim that you wrote the original software. If you use this software
icculus@8153
    15
     in a product, an acknowledgment in the product documentation would be
icculus@8153
    16
     appreciated but is not required.
icculus@8153
    17
  2. Altered source versions must be plainly marked as such, and must not be
icculus@8153
    18
     misrepresented as being the original software.
icculus@8153
    19
  3. This notice may not be removed or altered from any source distribution.
icculus@8153
    20
*/
icculus@8153
    21
icculus@8153
    22
/*
icculus@8153
    23
  Contributed by Brandon Schaefer, <brandon.schaefer@canonical.com>
icculus@8153
    24
*/
icculus@8153
    25
slouken@11382
    26
#ifndef SDL_mirframebuffer_h_
slouken@11382
    27
#define SDL_mirframebuffer_h_
icculus@8153
    28
icculus@8153
    29
#include "../SDL_sysvideo.h"
icculus@8153
    30
icculus@8153
    31
#include "SDL_mirvideo.h"
icculus@8153
    32
icculus@8153
    33
extern int
icculus@8153
    34
MIR_CreateWindowFramebuffer(_THIS, SDL_Window* sdl_window, Uint32* format,
icculus@8153
    35
                            void** pixels, int* pitch);
icculus@8153
    36
icculus@8153
    37
extern int
icculus@8153
    38
MIR_UpdateWindowFramebuffer(_THIS, SDL_Window* sdl_window,
icculus@8153
    39
                            const SDL_Rect* rects, int numrects);
icculus@8153
    40
icculus@8153
    41
extern void
icculus@8153
    42
MIR_DestroyWindowFramebuffer(_THIS, SDL_Window* sdl_window);
icculus@8153
    43
slouken@11382
    44
#endif /* SDL_mirframebuffer_h_ */
icculus@8154
    45
icculus@8154
    46
/* vi: set ts=4 sw=4 expandtab: */
icculus@8154
    47