1 //------------------------------------------------------------------------------ 2 // Copyright (c) 2001-2004, Haiku 3 // 4 // Permission is hereby granted, free of charge, to any person obtaining a 5 // copy of this software and associated documentation files (the "Software"), 6 // to deal in the Software without restriction, including without limitation 7 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 // and/or sell copies of the Software, and to permit persons to whom the 9 // Software is furnished to do so, subject to the following conditions: 10 // 11 // The above copyright notice and this permission notice shall be included in 12 // all copies or substantial portions of the Software. 13 // 14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 // DEALINGS IN THE SOFTWARE. 21 // 22 // File Name: GraphicsDefs.cpp 23 // Author: DarkWyrm <bpmagic@columbus.rr.com> 24 // Caz <turok2@currantbun.com> 25 // Axel Dörfler <axeld@pinc-software.de> 26 // Description: Graphics functions and variables for the Interface Kit 27 // 28 //------------------------------------------------------------------------------ 29 30 #include <GraphicsDefs.h> 31 32 // patterns 33 const pattern B_SOLID_HIGH = {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}; 34 const pattern B_MIXED_COLORS = {{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55}}; 35 const pattern B_SOLID_LOW = {{0, 0, 0, 0, 0, 0, 0, 0}}; 36 37 // colors 38 const rgb_color B_TRANSPARENT_COLOR = {0x77, 0x74, 0x77, 0x00}; 39 const rgb_color B_TRANSPARENT_32_BIT = {0x77, 0x74, 0x77, 0x00}; 40 const uint8 B_TRANSPARENT_8_BIT = 0xff; 41 42 const uint8 B_TRANSPARENT_MAGIC_CMAP8 = 0xff; 43 const uint16 B_TRANSPARENT_MAGIC_RGBA15 = 0x39ce; 44 const uint16 B_TRANSPARENT_MAGIC_RGBA15_BIG = 0xce39; 45 const uint32 B_TRANSPARENT_MAGIC_RGBA32 = 0x00777477; 46 const uint32 B_TRANSPARENT_MAGIC_RGBA32_BIG = 0x77747700; 47 48 // misc. 49 const struct screen_id B_MAIN_SCREEN_ID = {0}; 50 51 // GraphicsDefs.h 52 53 _IMPEXP_BE status_t 54 get_pixel_size_for(color_space space, size_t * pixel_chunk, size_t * row_alignment, size_t * pixels_per_chunk) 55 { 56 // TODO: Implement 57 } 58 59 60 _IMPEXP_BE bool 61 bitmaps_support_space(color_space space, uint32 * support_flags) 62 { 63 // TODO: Implement 64 } 65