ProtocolPreferences.h 849 Bytes
Newer Older
daFischer's avatar
first  
daFischer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/* 
 * File:   ProtocolPreferences.h
 * Author: user
 *
 * Created on May 5, 2014, 10:11 PM
 */

#ifndef PROTOCOLPREFERENCES_H
#define	PROTOCOLPREFERENCES_H

#include <stdio.h>
#include <string.h>
#include <SDL/SDL.h>

using namespace std;

class ProtocolPreferences{
public:
    ProtocolPreferences();
    static char versionMsg[12];
    static char* name;
    static short framebufferWidth;
    static short framebufferHeight;
    static char bitsPerPixel;
    static int bytesPerPixel;
    static char depth;
    static int preferedDepth;
    static bool bigEndian, trueColour;
    static short redMax, greenMax, blueMax;
    static char redShift, greenShift, blueShift;
    static SDL_PixelFormat* format;

    static int encodings[4];

    static bool ignoreCursorUpdates;
    
    static int starttime;
};

#endif	/* PROTOCOLPREFERENCES_H */