ReactOS  0.4.12-dev-18-gf469aca
bsops.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 8 -*-
2  rdesktop: A Remote Desktop Protocol client.
3  Generics backingstore operations
4  Copyright (C) Jay Sorg 2005-2006
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20 
21 #pragma once
22 
23 int bs_get_pixel(int x, int y);
24 void bs_set_pixel(int x, int y, int pixel, int rop, int use_clip);
25 int bs_do_rop(int rop, int src, int dst);
26 void bs_init(int width, int height, int bpp);
27 void bs_exit(void);
28 void bs_set_clip(int x, int y, int cx, int cy);
29 void bs_reset_clip(void);
30 void bs_set_pixel_on(char * data, int x, int y, int width, int bpp,
31  int pixel);
32 int bs_is_pixel_on(char * data, int x, int y, int width, int bpp);
33 void bs_copy_mem(char * d, char * s, int n);
34 void bs_copy_memb(char * d, char * s, int n);
35 int bs_warp_coords(int * x, int * y, int * cx, int * cy,
36  int * srcx, int * srcy);
37 void bs_rect(int x, int y, int cx, int cy, int colour, int rop);
38 void bs_screenblt(int opcode, int x, int y, int cx, int cy,
39  int srcx, int srcy);
40 void bs_memblt(int opcode, int x, int y, int cx, int cy,
41  void * srcdata, int srcwidth, int srcheight,
42  int srcx, int srcy);
43 void bs_copy_box(char * dst, int x, int y, int cx, int cy, int line_size);
44 void bs_draw_glyph(int x, int y, char * glyph_data, int glyph_width,
45  int glyph_height, int fgcolour);
46 void bs_line(int opcode, int startx, int starty, int endx, int endy,
47  int pen_width, int pen_style, int pen_colour);
48 void bs_patblt(int opcode, int x, int y, int cx, int cy,
49  int brush_style, char * brush_pattern,
50  int brush_x_org, int brush_y_org,
51  int bgcolour, int fgcolour);
void bs_set_pixel(int x, int y, int pixel, int rop, int use_clip)
Definition: bsops.c:108
void bs_init(int width, int height, int bpp)
Definition: bsops.c:158
GLint GLint GLsizei width
Definition: gl.h:1546
void bs_memblt(int opcode, int x, int y, int cx, int cy, void *srcdata, int srcwidth, int srcheight, int srcx, int srcy)
Definition: bsops.c:560
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint GLint GLint GLint GLint GLenum GLfloat GLenum GLint GLenum GLsizei GLenum GLboolean GLenum GLdouble GLenum GLfloat GLenum GLenum GLfloat GLenum GLenum GLdouble GLenum GLenum GLint GLenum GLenum GLint GLenum GLuint GLenum GLvoid const GLubyte GLenum GLenum GLenum GLint GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLvoid GLenum GLint GLenum GLint GLenum GLenum GLint GLuint GLdouble GLfloat GLint GLshort GLubyte GLenum GLuint GLenum const GLfloat GLenum const GLint GLenum GLenum const GLfloat GLenum GLenum const GLint GLfloat const GLfloat GLenum opcode
Definition: glfuncs.h:172
unsigned pen_style
Definition: paint.c:495
void bs_copy_mem(char *d, char *s, int n)
Definition: bsops.c:282
INT INT y
Definition: msvc.h:62
GLuint n
Definition: s_context.h:57
GLuint const GLubyte GLvoid * src
Definition: s_context.h:57
void bs_set_clip(int x, int y, int cx, int cy)
Definition: bsops.c:189
void bs_reset_clip(void)
Definition: bsops.c:199
void bs_set_pixel_on(char *data, int x, int y, int width, int bpp, int pixel)
Definition: bsops.c:246
static int rop(int rop, int src, int dst)
Definition: nanoxwin.c:124
void bs_exit(void)
Definition: bsops.c:179
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
int bs_get_pixel(int x, int y)
Definition: bsops.c:79
void bs_copy_memb(char *d, char *s, int n)
Definition: bsops.c:305
#define d
Definition: ke_i.h:81
void bs_line(int opcode, int startx, int starty, int endx, int endy, int pen_width, int pen_style, int pen_colour)
Definition: bsops.c:661
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
void bs_screenblt(int opcode, int x, int y, int cx, int cy, int srcx, int srcy)
Definition: bsops.c:469
int bs_do_rop(int rop, int src, int dst)
Definition: bsops.c:52
GLdouble s
Definition: gl.h:2039
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
int bs_is_pixel_on(char *data, int x, int y, int width, int bpp)
Definition: bsops.c:210
void bs_draw_glyph(int x, int y, char *glyph_data, int glyph_width, int glyph_height, int fgcolour)
Definition: bsops.c:640
INT x
Definition: msvc.h:62
int bs_warp_coords(int *x, int *y, int *cx, int *cy, int *srcx, int *srcy)
Definition: bsops.c:331
GLuint const GLubyte GLvoid const GLvoid * dst
Definition: s_context.h:57
void bs_rect(int x, int y, int cx, int cy, int colour, int rop)
Definition: bsops.c:386
_Out_opt_ int * cx
Definition: commctrl.h:570
DWORD bpp
Definition: surface.c:181
void bs_copy_box(char *dst, int x, int y, int cx, int cy, int line_size)
Definition: bsops.c:793
void bs_patblt(int opcode, int x, int y, int cx, int cy, int brush_style, char *brush_pattern, int brush_x_org, int brush_y_org, int bgcolour, int fgcolour)
Definition: bsops.c:744