Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

VgaBuf class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

VgaBuf Class Reference

VGA direct draw buffer. More...

#include <Ovgabuf.h>

List of all members.

Public Methods

short * buf_ptr ()
short * buf_ptr (int x, int y)
int buf_pitch ()
int buf_true_pitch ()
int buf_size ()
int buf_width ()
int buf_height ()
 VgaBuf ()
 ~VgaBuf ()
void init_front (LPDIRECTDRAW4 ddPtr)
void init_back (LPDIRECTDRAW4 ddPtr, DWORD=0, DWORD=0)
void deinit ()
void set_color (int colorScheme)
BOOL is_buf_lost ()
BOOL restore_buf ()
void activate_pal (LPDIRECTDRAWPALETTE ddPalPtr)
DWORD color_match (COLORREF rgb)
void lock_buf ()
void unlock_buf ()
void temp_unlock ()
void temp_restore_lock ()
void temp_lock ()
void temp_restore_unlock ()
void set_buf_ptr (short *bufPtr)
void set_default_buf_ptr ()
int write_bmp_file (char *fileName)
int write_bmp_file_area (char *fileName, int x1, int y1, int x2, int y2)
void bar (int x1, int y1, int x2, int y2, int colorCode)
void bar_fast (int x1, int y1, int x2, int y2, int colorCode)
void barW_fast (int x1, int y1, int x2, int y2, int colorCode)
void bar_up (int x1, int y1, int x2, int y2)
void bar_down (int x1, int y1, int x2, int y2)
void draw_pixel (int x1, int y1, int colorCode)
void separator (int, int, int, int)
void line (int x1, int y1, int x2, int y2, int colorCode)
void thick_line (int x1, int y1, int x2, int y2, int colorCode)
void indicator (int, int, int, int, float, float, int, int=-1)
void indicator (int barType, int x, int y, float, float, int colorScheme)
void v_indicator (int, int, int, int, float, float, int, int=-1)
void rect (int, int, int, int, int, int)
void d3_rect (int, int, int, int)
void d3_panel_up (int, int, int, int, int=2, int=1, char *=0)
void d3_panel_down (int, int, int, int, int=2, int=1, char *=0)
void d3_panel_up_clear (int, int, int, int, int=2, char *=0)
void d3_panel_down_clear (int, int, int, int, int=2, char *=0)
void tile (int, int, int, int, char *)
void adjust_brightness (int x1, int y1, int x2, int y2, int adjustDegree)
void draw_d3_up_border (int x1, int y1, int x2, int y2)
void draw_d3_down_border (int x1, int y1, int x2, int y2)
void convert_gray (int x1, int y1, int x2, int y2)
short * save_area (int, int, int, int, short *=0L)
void rest_area (short *, int=1, int=0)
void rest_area_with_clipping (short *, int, int, int, int, int=1, int=0)
void save_area_common_buf (int, int, int, int)
void rest_area_common_buf ()
void put_large_bitmap (int x1, int y1, File *filePtr, short *colorRemapTable=0)
void put_large_bitmapW (int x1, int y1, File *filePtr)
void put_bitmap (int x, int y, char *bitmapBuf)
void put_bitmap_hmirror (int x, int y, char *bitmapBuf)
void put_bitmap_area (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_area_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_remap (int desX, int desY, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_remap_fast (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_remap_hmirror (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_area_remap (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void put_bitmap_area_remap_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void put_bitmap_trans (int x, int y, char *bitmapBuf)
void put_bitmap_trans_fast (int x, int y, char *bitmapBuf)
void put_bitmap_trans_hmirror (int x, int y, char *bitmapBuf)
void put_bitmap_area_trans (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_area_trans_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_trans_remap (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_trans_remap_hmirror (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_area_trans_remap (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void put_bitmap_area_trans_remap_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void put_bitmap_trans_decompress (int x, int y, char *bitmapBuf)
void put_bitmap_trans_decompress_hmirror (int x, int y, char *bitmapBuf)
void put_bitmap_area_trans_decompress (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_area_trans_decompress_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmap_trans_remap_decompress (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_trans_remap_decompress_hmirror (int x, int y, char *bitmapBuf, short *colorRemapTable)
void put_bitmap_area_trans_remap_decompress (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void put_bitmap_area_trans_remap_decompress_hmirror (int x, int y, char *bitmapBuf, int srcX1, int srcY1, int srcX2, int srcY2, short *colorRemapTable)
void read_bitmapW (int x1, int y1, int x2, int y2, short *bitmapWBuf)
void read_bitmapW (int x1, int y1, int x2, int y2, BitmapW *bitmapWBuf)
void put_bitmapW (int x, int y, short *bitmapWBuf)
void put_bitmapW (int x, int y, BitmapW *bitmapWBuf)
void put_bitmapW_area (int x, int y, short *bitmapWBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmapW_area (int x, int y, BitmapW *bitmapWBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmapW_trans (int x, int y, short *bitmapWBuf)
void put_bitmapW_trans (int x, int y, BitmapW *bitmapWBuf)
void put_bitmapW_area_trans (int x, int y, short *bitmapWBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void put_bitmapW_area_trans (int x, int y, BitmapW *bitmapWBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void blt_buf (VgaBuf *srcBuf, int x1, int y1)
 copy put whole part of a vgaBuf to (x1,y1) of this VgaBuf

void blt_buf_fast (VgaBuf *srcBuf, int srcX1, int srcY1, int srcX2, int srcY2)
void blt_buf_bright (VgaBuf *srcBuf, int srcX1, int srcY1, int srcX2, int srcY2, int brightness)
void join_trans_remap (VgaBuf *srcBuf, int x, int y, char *bitmapBuf, short *colorRemapTable)
void join_trans (VgaBuf *srcBuf, int x, int y, char *bitmapBuf)

Static Public Methods

int translate_color (unsigned char c)

Public Attributes

LPDIRECTDRAWSURFACE4 dd_buf
DDSURFACEDESC2 buf_des
BOOL buf_locked
short * cur_buf_ptr
char is_front
UCHAR lock_stack_count
WORD lock_bit_stack

Static Public Attributes

short color_scheme
char color_light
char color_dark
char color_up
char color_down
char color_push
char color_border
short * default_remap_table


Detailed Description

VGA direct draw buffer.

Definition at line 17 of file Ovgabuf.h.


Constructor & Destructor Documentation

VgaBuf::VgaBuf  
 

Definition at line 19 of file Ovgabuf.cpp.

References set_color(), and VGA_GRAY.

VgaBuf::~VgaBuf  
 

Definition at line 28 of file Ovgabuf.cpp.

References deinit().


Member Function Documentation

void VgaBuf::activate_pal LPDIRECTDRAWPALETTE    ddPalPtr
 

Activate a palette to the current direct draw surface buffer.

Definition at line 143 of file Ovgabuf.cpp.

void VgaBuf::adjust_brightness int    x1,
int    y1,
int    x2,
int    y2,
int    adjustDegree
 

clear the center of the either up or down panel

<int> x1,y1,x2,y2 = the four vertex of the panel <int> adjustDegree = the degree of brightness to adjust (a value from -10 to 10)

Definition at line 750 of file OVGABUF2.CPP.

References err_when, IMGbrightBar(), and MAX_BRIGHTNESS_ADJUST_DEGREE.

Referenced by Vga::separator().

void VgaBuf::bar int    x1,
int    y1,
int    x2,
int    y2,
int    colorCode
 

Draw a bar without bliting

Syntax : bar( x1, y1, x2, y2, color )

<int> x1,y1 - the top left vertex of the bar <int> x2,y2 - the bottom right vertex of the bar <int> color index - the index of a 256 color palette

Definition at line 56 of file OVGABUF2.CPP.

References Vga::active_buf.

Referenced by bar_down(), bar_up(), indicator(), separator(), and v_indicator().

void VgaBuf::bar_down int    x1,
int    y1,
int    x2,
int    y2
[inline]
 

Definition at line 104 of file Ovgabuf.h.

References bar(), and color_down.

void VgaBuf::bar_fast int    x1,
int    y1,
int    x2,
int    y2,
int    colorCode
[inline]
 

Definition at line 98 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), IMGbar(), and translate_color().

Referenced by Font::put_paragraph().

void VgaBuf::bar_up int    x1,
int    y1,
int    x2,
int    y2
[inline]
 

Definition at line 103 of file Ovgabuf.h.

References bar(), and color_up.

void VgaBuf::barW_fast int    x1,
int    y1,
int    x2,
int    y2,
int    colorCode
[inline]
 

Definition at line 100 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbar().

void VgaBuf::blt_buf VgaBuf *    srcBuf,
int    x1,
int    y1
 

copy put whole part of a vgaBuf to (x1,y1) of this VgaBuf

Definition at line 792 of file OVGABUF2.CPP.

void VgaBuf::blt_buf_bright VgaBuf *    srcBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
int    adjustDegree
 

copy and change brightness of an area

Definition at line 776 of file OVGABUF2.CPP.

References err_when, IMGcopyWbright(), and MAX_BRIGHTNESS_ADJUST_DEGREE.

void VgaBuf::blt_buf_fast VgaBuf *    srcBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 263 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGcopyW().

int VgaBuf::buf_height   [inline]
 

Definition at line 45 of file Ovgabuf.h.

References buf_des.

int VgaBuf::buf_pitch   [inline]
 

Definition at line 36 of file Ovgabuf.h.

References buf_des.

Referenced by draw_pixel().

short* VgaBuf::buf_ptr int    x,
int    y
[inline]
 

Definition at line 33 of file Ovgabuf.h.

References buf_des, and cur_buf_ptr.

short* VgaBuf::buf_ptr   [inline]
 

Definition at line 32 of file Ovgabuf.h.

References cur_buf_ptr.

Referenced by bar_fast(), barW_fast(), blt_buf_fast(), draw_pixel(), join_trans(), join_trans_remap(), put_bitmap_area(), put_bitmap_area_hmirror(), put_bitmap_area_remap(), put_bitmap_area_remap_hmirror(), put_bitmap_area_trans(), put_bitmap_area_trans_decompress(), put_bitmap_area_trans_decompress_hmirror(), put_bitmap_area_trans_hmirror(), put_bitmap_area_trans_remap(), put_bitmap_area_trans_remap_decompress(), put_bitmap_area_trans_remap_decompress_hmirror(), put_bitmap_area_trans_remap_hmirror(), put_bitmap_hmirror(), put_bitmap_remap_fast(), put_bitmap_remap_hmirror(), put_bitmap_trans_decompress(), put_bitmap_trans_decompress_hmirror(), put_bitmap_trans_fast(), put_bitmap_trans_hmirror(), put_bitmap_trans_remap(), put_bitmap_trans_remap_decompress(), put_bitmap_trans_remap_decompress_hmirror(), put_bitmap_trans_remap_hmirror(), put_bitmapW(), put_bitmapW_area(), put_bitmapW_area_trans(), put_bitmapW_trans(), Print::put_vga_back(), Print::put_vga_back_center(), and read_bitmapW().

int VgaBuf::buf_size   [inline]
 

Definition at line 43 of file Ovgabuf.h.

References buf_des.

int VgaBuf::buf_true_pitch   [inline]
 

Definition at line 41 of file Ovgabuf.h.

References buf_des.

Referenced by bar_fast(), barW_fast(), blt_buf_fast(), join_trans(), join_trans_remap(), put_bitmap_area(), put_bitmap_area_hmirror(), put_bitmap_area_remap(), put_bitmap_area_remap_hmirror(), put_bitmap_area_trans(), put_bitmap_area_trans_decompress(), put_bitmap_area_trans_decompress_hmirror(), put_bitmap_area_trans_hmirror(), put_bitmap_area_trans_remap(), put_bitmap_area_trans_remap_decompress(), put_bitmap_area_trans_remap_decompress_hmirror(), put_bitmap_area_trans_remap_hmirror(), put_bitmap_hmirror(), put_bitmap_remap_fast(), put_bitmap_remap_hmirror(), put_bitmap_trans_decompress(), put_bitmap_trans_decompress_hmirror(), put_bitmap_trans_fast(), put_bitmap_trans_hmirror(), put_bitmap_trans_remap(), put_bitmap_trans_remap_decompress(), put_bitmap_trans_remap_decompress_hmirror(), put_bitmap_trans_remap_hmirror(), put_bitmapW(), put_bitmapW_area(), put_bitmapW_area_trans(), put_bitmapW_trans(), and read_bitmapW().

int VgaBuf::buf_width   [inline]
 

Definition at line 44 of file Ovgabuf.h.

References buf_des.

DWORD VgaBuf::color_match COLORREF    rgb
 

Definition at line 165 of file Ovgabuf.cpp.

References dd_buf, and NULL.

void VgaBuf::convert_gray int    x1,
int    y1,
int    x2,
int    y2
 

Convert an specified area of the bitmap from color to gray-scale.

Definition at line 1107 of file Ovgabuf.cpp.

void VgaBuf::d3_panel_down int    x1,
int    y1,
int    x2,
int    y2,
int    t = 2,
int    paintCentre = 1,
char *    tileName = 0
 

Draw a Ms windows style 3D panel with panel pushed downwards

<int> x1,y1,x2,y2 = the four vertex of the panel [int] thick = thickness of the border (default:2) [int] paintCentre = paint the center area of the plane or not pass 0 if the area has just been painted with bar() (default:1) [char*] tileName = name of the texture tile if this panel should be filled with tile texture (default: NULL)

Definition at line 632 of file OVGABUF2.CPP.

References err_when, V_WHITE, VGA_HEIGHT, and VGA_WIDTH.

void VgaBuf::d3_panel_down_clear int    x1,
int    y1,
int    x2,
int    y2,
int    t = 2,
char *    tileName = 0
 

clear the center of the either up or down panel

<int> x1,y1,x2,y2 = the four vertex of the panel [int] thick = thickness of the border (default:2) [char*] tileName = name of the texture tile if this panel should be filled with tile texture (default: NULL)

Definition at line 729 of file OVGABUF2.CPP.

void VgaBuf::d3_panel_up int    x1,
int    y1,
int    x2,
int    y2,
int    t = 2,
int    paintCentre = 1,
char *    tileName = 0
 

Draw a Ms windows style 3D panel

thickness can be 1-4

<int> x1,y1,x2,y2 = the four vertex of the panel [int] thick = thickness of the border (default:2) [int] paintCentre = paint the center area of the plane or not pass 0 if the area has just been painted with bar() (default:1) [char*] tileName = name of the texture tile if this panel should be filled with tile texture (default: NULL)

Definition at line 577 of file OVGABUF2.CPP.

References VGA_HEIGHT, and VGA_WIDTH.

void VgaBuf::d3_panel_up_clear int    x1,
int    y1,
int    x2,
int    y2,
int    t = 2,
char *    tileName = 0
 

clear the center of the either up or down panel

<int> x1,y1,x2,y2 = the four vertex of the panel [int] thick = thickness of the border (default:2) [char*] tileName = name of the texture tile if this panel should be filled with tile texture (default: NULL)

Definition at line 705 of file OVGABUF2.CPP.

void VgaBuf::d3_rect int   ,
int   ,
int   ,
int   
 

Definition at line 164 of file OVGABUF2.CPP.

References rect(), V_WHITE, and VGA_GRAY.

void VgaBuf::deinit  
 

Definition at line 130 of file Ovgabuf.cpp.

References dd_buf, and NULL.

Referenced by ~VgaBuf().

void VgaBuf::draw_d3_down_border int    x1,
int    y1,
int    x2,
int    y2
 

void VgaBuf::draw_d3_up_border int    x1,
int    y1,
int    x2,
int    y2
 

void VgaBuf::draw_pixel int    x1,
int    y1,
int    colorCode
[inline]
 

Definition at line 106 of file Ovgabuf.h.

References buf_pitch(), buf_ptr(), and translate_color().

void VgaBuf::indicator int    barType,
int    x,
int    y,
float   ,
float   ,
int    colorScheme
 

void VgaBuf::indicator int   ,
int   ,
int   ,
int   ,
float   ,
float   ,
int   ,
int    = -1
 

Definition at line 230 of file OVGABUF2.CPP.

References bar(), color_down, and V_BLACK.

void VgaBuf::init_back LPDIRECTDRAW4    ddPtr,
DWORD    w = 0,
DWORD    h = 0
 

Create a direct draw back buffer.

[DWORD] w : width of the surface [default 0 : VGA_WIDTH] [DWORD] h : height of the surface [default 0 : VGA_HEIGHT]

Definition at line 91 of file Ovgabuf.cpp.

References NULL, VGA_HEIGHT, and VGA_WIDTH.

void VgaBuf::init_front LPDIRECTDRAW4    ddPtr
 

Create a direct draw front buffer.

Definition at line 38 of file Ovgabuf.cpp.

References NULL.

BOOL VgaBuf::is_buf_lost  
 

Definition at line 199 of file Ovgabuf.cpp.

void VgaBuf::join_trans VgaBuf *    srcBuf,
int    x,
int    y,
char *    bitmapBuf
[inline]
 

Definition at line 272 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGjoinTransRemap().

void VgaBuf::join_trans_remap VgaBuf *    srcBuf,
int    x,
int    y,
char *    bitmapBuf,
short *    colorRemapTable
[inline]
 

Definition at line 269 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGjoinTransRemap().

void VgaBuf::line int    x1,
int    y1,
int    x2,
int    y2,
int    lineColor
 

Draw a line

<int> x1,y1,x2,y2 = the coordination of the line <int> lineColor = color of the line

Definition at line 511 of file OVGABUF2.CPP.

void VgaBuf::lock_buf  
 

Definition at line 224 of file Ovgabuf.cpp.

References buf_des, buf_locked, cur_buf_ptr, dd_buf, err_if, err_now, and NULL.

void VgaBuf::put_bitmap int    x,
int    y,
char *    bitmapPtr
 

Put a bitmap on the surface buffer

Definition at line 376 of file Ovgabuf.cpp.

Referenced by ImageRes::put_to_buf().

void VgaBuf::put_bitmap_area int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 156 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaRemap().

void VgaBuf::put_bitmap_area_hmirror int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 159 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaRemapHMirror().

void VgaBuf::put_bitmap_area_remap int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
short *    colorRemapTable
[inline]
 

Definition at line 169 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbltAreaRemap().

void VgaBuf::put_bitmap_area_remap_hmirror int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
short *    colorRemapTable
[inline]
 

Definition at line 172 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbltAreaRemapHMirror().

void VgaBuf::put_bitmap_area_trans int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 185 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaTransRemap().

void VgaBuf::put_bitmap_area_trans_decompress int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 211 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaTransRemapDecompress().

void VgaBuf::put_bitmap_area_trans_decompress_hmirror int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 214 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaTransRemapDecompressHMirror().

void VgaBuf::put_bitmap_area_trans_hmirror int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2
[inline]
 

Definition at line 188 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), default_remap_table, and IMGbltAreaTransRemapHMirror().

void VgaBuf::put_bitmap_area_trans_remap int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
short *    colorRemapTable
[inline]
 

Definition at line 197 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbltAreaTransRemap().

void VgaBuf::put_bitmap_area_trans_remap_decompress int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
short *    colorRemapTable
[inline]
 

Definition at line 223 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbltAreaTransRemapDecompress().

void VgaBuf::put_bitmap_area_trans_remap_decompress_hmirror int    x,
int    y,
char *    bitmapBuf,
int    srcX1,
int    srcY1,
int    srcX2,
int    srcY2,
short *    colorRemapTable
[inline]
 

Definition at line 226 of file Ovgabuf.h.

References buf_ptr(), buf_true_pitch(), and IMGbltAreaTransRemapDecompressHMirror().

void VgaBuf::put_bitmap_area_trans_remap_hmirror int    x,
int    y<