src/video/haiku/SDL_bframebuffer.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 01 Jan 2017 18:33:28 -0800
changeset 10737 3406a0f8b041
parent 10690 23a825f341e6
child 11811 5d94cb6b24d3
permissions -rw-r--r--
Updated copyright for 2017
nathanheisey@5931
     1
/*
nathanheisey@5931
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
nathanheisey@5931
     4
nathanheisey@5931
     5
  This software is provided 'as-is', without any express or implied
nathanheisey@5931
     6
  warranty.  In no event will the authors be held liable for any damages
nathanheisey@5931
     7
  arising from the use of this software.
nathanheisey@5931
     8
nathanheisey@5931
     9
  Permission is granted to anyone to use this software for any purpose,
nathanheisey@5931
    10
  including commercial applications, and to alter it and redistribute it
nathanheisey@5931
    11
  freely, subject to the following restrictions:
nathanheisey@5931
    12
nathanheisey@5931
    13
  1. The origin of this software must not be misrepresented; you must not
nathanheisey@5931
    14
     claim that you wrote the original software. If you use this software
nathanheisey@5931
    15
     in a product, an acknowledgment in the product documentation would be
nathanheisey@5931
    16
     appreciated but is not required.
nathanheisey@5931
    17
  2. Altered source versions must be plainly marked as such, and must not be
nathanheisey@5931
    18
     misrepresented as being the original software.
nathanheisey@5931
    19
  3. This notice may not be removed or altered from any source distribution.
nathanheisey@5931
    20
*/
nathanheisey@5931
    21
nathanheisey@5931
    22
#ifndef SDL_BFRAMEBUFFER_H
nathanheisey@5931
    23
#define SDL_BFRAMEBUFFER_H
nathanheisey@5931
    24
#include <SupportDefs.h>
nathanheisey@5931
    25
#ifdef __cplusplus
nathanheisey@5931
    26
extern "C" {
nathanheisey@5931
    27
#endif
nathanheisey@5931
    28
nathanheisey@5936
    29
#define DRAWTHREAD
nathanheisey@5936
    30
nathanheisey@5931
    31
#include "../SDL_sysvideo.h"
nathanheisey@5931
    32
nathanheisey@5931
    33
extern int BE_CreateWindowFramebuffer(_THIS, SDL_Window * window,
nathanheisey@5931
    34
                                       Uint32 * format,
nathanheisey@5931
    35
                                       void ** pixels, int *pitch);
nathanheisey@5931
    36
extern int BE_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
slouken@7014
    37
                                       const SDL_Rect * rects, int numrects);
nathanheisey@5931
    38
extern void BE_DestroyWindowFramebuffer(_THIS, SDL_Window * window);
nathanheisey@5931
    39
extern int32 BE_DrawThread(void *data);
nathanheisey@5931
    40
nathanheisey@5931
    41
#ifdef __cplusplus
nathanheisey@5931
    42
}
nathanheisey@5931
    43
#endif
nathanheisey@5931
    44
nathanheisey@5931
    45
#endif
slouken@10690
    46
slouken@10690
    47
/* vi: set ts=4 sw=4 expandtab: */