982
|
1 // fb_test.c
|
|
2 // Simple test application. Draw something to the frame buffer.
|
|
3 //
|
|
4 // Copyright (c) 2006, Mike Acton <macton@cellperformance.com>
|
|
5 //
|
|
6 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
7 // documentation files (the "Software"), to deal in the Software without restriction, including without
|
|
8 // limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9 // the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
|
|
10 // conditions:
|
|
11 //
|
|
12 // The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
13 // portions of the Software.
|
|
14 //
|
|
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
16 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
17 // EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
18 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19 // OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
|
21 #include <stdint.h>
|
|
22 #include <stdio.h>
|
|
23 #include <string.h>
|
|
24 #include <math.h>
|
|
25 #include "cp_vt.h"
|
|
26 #include "cp_fb.h"
|
|
27
|
|
28 void write_hline_gouraud_ABGR8888( int32_t x0, int32_t x1, uint32_t left_rgba, uint32_t right_rgba, void* dest_buffer, uint16_t stride );
|
|
29
|
|
30 int
|
|
31 main( void )
|
|
32 {
|
|
33 cp_vt vt;
|
|
34 cp_fb fb;
|
|
35
|
|
36 cp_vt_open_graphics(&vt);
|
|
37 cp_fb_open(&fb);
|
|
38
|
|
39
|
|
40 cp_vt_close(&vt);
|
|
41 cp_fb_close(&fb);
|
|
42
|
|
43 return (0);
|
|
44 }
|
|
45
|