00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "Core/precomp.h"
00016 #include <API/Display/Display/palette.h>
00017 #include <Display/Display/X11/target_ximage_dga.h>
00018 #include "API/Core/System/cl_assert.h"
00019
00020 #include <iostream>
00021 #include <string.h>
00022
00023 CL_Target_XImage_DGA::CL_Target_XImage_DGA(
00024 XVisualInfo visual_info,
00025 Display *dpy,
00026 unsigned int width,
00027 unsigned int height)
00028 {
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 }
00079
00080 CL_Target_XImage_DGA::~CL_Target_XImage_DGA()
00081 {
00082
00083
00084
00085
00086
00087
00088
00089
00090 }
00091
00092 void CL_Target_XImage_DGA::put_image(int x, int y, Drawable win, GC gc)
00093 {
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104 }
00105
00106 void CL_Target_XImage_DGA::put_image(
00107 int x, int y,
00108 const class CL_Rect &rect,
00109 Drawable win, GC gc)
00110 {
00111 }
00112
00113 void CL_Target_XImage_DGA::lock()
00114 {
00115
00116 }
00117
00118 void CL_Target_XImage_DGA::unlock()
00119 {
00120 }
00121
00122 void *CL_Target_XImage_DGA::get_data() const
00123 {
00124 return m_dga_image->data;
00125 }
00126
00127 unsigned int CL_Target_XImage_DGA::get_width() const
00128 {
00129 return m_width;
00130 }
00131
00132 unsigned int CL_Target_XImage_DGA::get_height() const
00133 {
00134 return m_height;
00135 }
00136
00137 unsigned int CL_Target_XImage_DGA::get_pitch() const
00138 {
00139 return m_pitch;
00140 }
00141
00142 unsigned int CL_Target_XImage_DGA::get_depth() const
00143 {
00144 return m_depth;
00145 }
00146
00147 unsigned int CL_Target_XImage_DGA::get_red_mask() const
00148 {
00149 return m_visual_info.red_mask;
00150 }
00151
00152 unsigned int CL_Target_XImage_DGA::get_green_mask() const
00153 {
00154 return m_visual_info.green_mask;
00155 }
00156
00157 unsigned int CL_Target_XImage_DGA::get_blue_mask() const
00158 {
00159 return m_visual_info.blue_mask;
00160 }
00161
00162 bool CL_Target_XImage_DGA::is_indexed() const
00163 {
00164 return false;
00165 }
00166
00167 unsigned int CL_Target_XImage_DGA::get_alpha_mask() const
00168 {
00169
00170 return 0;
00171 }
00172
00173 CL_Palette *CL_Target_XImage_DGA::get_palette() const
00174 {
00175 return NULL;
00176 }