TX Library Help – Version: 00173a, Revision: 174
 ALL  Windows graphics in a sandbox

Example02/proto.h

См. документацию.
00001 //{===========================================================================
00011 //}===========================================================================
00012 // proto.h
00013 
00014 // 1. server -> client: NetCursor_t
00015 // 2. server <- client: NetCursor_t
00016 
00017 #include "TXNetwork.h"
00018 #include "TXLib.h"
00019 
00020 enum CursorActions
00021     {
00022     CUR_NOP = 0,
00023     CUR_DRAW = 1,
00024     CUR_EXIT = -1
00025     };
00026 
00027 struct NetCursor_t
00028     {
00029     int     x,     y;
00030     int old_x, old_y;
00031     CursorActions action;
00032     };