| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Travis Geiselbrecht | 2 * Copyright (c) 2010 Travis Geiselbrecht |
| 3 * | 3 * |
| 4 * Permission is hereby granted, free of charge, to any person obtaining | 4 * Permission is hereby granted, free of charge, to any person obtaining |
| 5 * a copy of this software and associated documentation files | 5 * a copy of this software and associated documentation files |
| 6 * (the "Software"), to deal in the Software without restriction, | 6 * (the "Software"), to deal in the Software without restriction, |
| 7 * including without limitation the rights to use, copy, modify, merge, | 7 * including without limitation the rights to use, copy, modify, merge, |
| 8 * publish, distribute, sublicense, and/or sell copies of the Software, | 8 * publish, distribute, sublicense, and/or sell copies of the Software, |
| 9 * and to permit persons to whom the Software is furnished to do so, | 9 * and to permit persons to whom the Software is furnished to do so, |
| 10 * subject to the following conditions: | 10 * subject to the following conditions: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // blend between two surfaces | 96 // blend between two surfaces |
| 97 void gfx_surface_blend(struct gfx_surface *target, struct gfx_surface *source, u
int destx, uint desty); | 97 void gfx_surface_blend(struct gfx_surface *target, struct gfx_surface *source, u
int destx, uint desty); |
| 98 | 98 |
| 99 void gfx_flush(struct gfx_surface *surface); | 99 void gfx_flush(struct gfx_surface *surface); |
| 100 | 100 |
| 101 void gfx_flush_rows(struct gfx_surface *surface, uint start, uint end); | 101 void gfx_flush_rows(struct gfx_surface *surface, uint start, uint end); |
| 102 | 102 |
| 103 // surface setup | 103 // surface setup |
| 104 gfx_surface *gfx_create_surface(void *ptr, uint width, uint height, uint stride,
gfx_format format); | 104 gfx_surface *gfx_create_surface(void *ptr, uint width, uint height, uint stride,
gfx_format format); |
| 105 | 105 |
| 106 // utility routine to make a surface out of a display info | 106 // utility routine to make a surface out of a display framebuffer |
| 107 struct display_info; | 107 struct display_framebuffer; |
| 108 gfx_surface *gfx_create_surface_from_display(struct display_info *); | 108 gfx_surface *gfx_create_surface_from_display(struct display_framebuffer *) __NON
NULL((1)); |
| 109 | 109 |
| 110 // free the surface | 110 // free the surface |
| 111 // optionally frees the buffer if the free bit is set | 111 // optionally frees the buffer if the free bit is set |
| 112 void gfx_surface_destroy(struct gfx_surface *surface); | 112 void gfx_surface_destroy(struct gfx_surface *surface); |
| 113 | 113 |
| 114 // utility routine to fill the display with a little moire pattern | 114 // utility routine to fill the display with a little moire pattern |
| 115 void gfx_draw_pattern(void); | 115 void gfx_draw_pattern(void); |
| 116 | 116 |
| 117 #endif | 117 #endif |
| 118 | 118 |
| OLD | NEW |