2 * $Logfile: /Freespace2/code/Graphics/Pixel.cpp $
7 * Routines to plot a dot.
10 * Revision 1.1 2002/05/03 03:28:09 root
14 * 3 12/02/98 5:47p Dave
15 * Put in interface xstr code. Converted barracks screen to new format.
17 * 2 10/07/98 10:53a Dave
20 * 1 10/07/98 10:49a Dave
22 * 14 5/06/98 5:30p John
23 * Removed unused cfilearchiver. Removed/replaced some unused/little used
24 * graphics functions, namely gradient_h and _v and pixel_sp. Put in new
25 * DirectX header files and libs that fixed the Direct3D alpha blending
28 * 13 3/10/98 4:18p John
29 * Cleaned up graphics lib. Took out most unused gr functions. Made D3D
30 * & Glide have popups and print screen. Took out all >8bpp software
31 * support. Made Fred zbuffer. Made zbuffer allocate dynamically to
32 * support Fred. Made zbuffering key off of functions rather than one
35 * 12 1/13/98 10:20a John
36 * Added code to support "glass" in alphacolors
38 * 11 10/19/97 12:55p John
39 * new code to lock / unlock surfaces for smooth directx integration.
41 * 10 10/14/97 8:08a John
42 * added a bunch more 16 bit support
44 * 9 10/09/97 5:23p John
45 * Added support for more 16-bpp functions
47 * 8 6/06/97 2:40p John
48 * Made all the radar dim in/out
50 * 7 5/29/97 3:09p John
51 * Took out debug menu.
52 * Made software scaler draw larger bitmaps.
53 * Optimized Direct3D some.
55 * 6 5/12/97 12:27p John
56 * Restructured Graphics Library to add support for multiple renderers.
58 * 5 1/09/97 11:35a John
59 * Added some 2d functions to get/put screen images.
61 * 4 11/07/96 6:19p John
62 * Added a bunch of 16bpp primitives so the game sort of runs in 16bpp
65 * 3 10/26/96 1:40p John
66 * Added some now primitives to the 2d library and
67 * cleaned up some old ones.
73 #include "grinternal.h"
77 void gr8_pixel( int x, int y )
81 if ( x < gr_screen.clip_left ) return;
82 if ( x > gr_screen.clip_right ) return;
83 if ( y < gr_screen.clip_top ) return;
84 if ( y > gr_screen.clip_bottom ) return;
88 dptr = GR_SCREEN_PTR(ubyte,x, y);
89 if ( Current_alphacolor ) {
90 // *dptr = Current_alphacolor->table.lookup[14][*dptr];
92 *dptr = gr_screen.current_color.raw8;