Added stub functions, fleshed out network includes
This commit is contained in:
parent
8292fb3290
commit
d120683753
1 changed files with 558 additions and 71 deletions
18
src/raylib.h
18
src/raylib.h
|
|
@ -418,6 +418,15 @@ typedef struct VrStereoConfig {
|
|||
int eyeViewportLeft[4]; // VR stereo rendering left eye viewport [x, y, w, h]
|
||||
} VrStereoConfig;
|
||||
|
||||
// Address struct in the form a.b.c.d where [a, b, c, d] are >= 0 && <= 255
|
||||
typedef struct Address {
|
||||
unsigned char a;
|
||||
unsigned char b;
|
||||
unsigned char c;
|
||||
unsigned char d;
|
||||
short port;
|
||||
} Address;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
// Enumerators Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
|
|
@ -1375,6 +1384,15 @@ RLAPI void StopAudioStream(AudioStream stream); // Stop au
|
|||
RLAPI void SetAudioStreamVolume(AudioStream stream, float volume); // Set volume for audio stream (1.0 is max level)
|
||||
RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level)
|
||||
|
||||
// Network functions
|
||||
RLAPI bool InitializeSockets(void);
|
||||
RLAPI void ShutdownSockets(void);
|
||||
RLAPI int CreateUDPSocket(void);
|
||||
RLAPI bool OpenSocket(int handle, unsigned short port);
|
||||
RLAPI bool SendData(int handle, const Address* destination, const void* data, int size);
|
||||
RLAPI bool ReceiveData(int handle, Address* sender, void* data, int size);
|
||||
RLAPI int AddressToInt(Address address);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue