Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6634 in orxonox.OLD for trunk/src/lib/network/converter.h


Ignore:
Timestamp:
Jan 21, 2006, 1:18:19 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the network-branche back to the trunk

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6500:HEAD
minor conflicts in texture and one Makefile resolved to the trunk

also made a small patch to texture, so it Modulates with GL_REPEAT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/converter.h

    r6341 r6634  
    99/* include this file, it contains some default definitions */
    1010#include "netdefs.h"
     11
    1112
    1213/* include base_object.h since all classes are derived from this one */
     
    2122 * a class that can convert int to byte-array and vice versa
    2223 */
    23 class Converter: public BaseObject
     24class Converter : public BaseObject
    2425{
    2526  public:
     
    4344    static float byteArrayToFloat(byte* a);
    4445
    45     static byte* _floatToByteArray(float x);
    46     static float _byteArrayToFloat(byte* a);
     46    static int _floatToByteArray(float x, byte* a, int length);
     47    static int _byteArrayToFloat(const byte* a, float* x);
     48
     49
     50    static void debug();
     51    static void floatTest(float x);
     52    static float getDenormConst();
     53
     54
    4755  private:
    4856    Converter();
     
    5058};
    5159
     60#undef byte
     61
    5262#endif /*_CONVERTER*/
Note: See TracChangeset for help on using the changeset viewer.