-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNetworkEntities.hpp
39 lines (34 loc) · 1010 Bytes
/
NetworkEntities.hpp
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
#ifndef __NETWORKENTITIES_HPP_INCLUDED__
#define __NETWORKENTITIES_HPP_INCLUDED__
#include <vector>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "gframework/graphicsframework.hpp"
#include "resources.hpp"
class NetworkEntity
{
glObject* graphic;
glm::vec3 scale_vector;
Attribute* att_position;
Attribute* att_color;
Attribute* att_scale;
public:
glm::vec3 color_vector;
void draw();
NetworkEntity(unsigned int addr);
~NetworkEntity();
unsigned int ipAddr;
glm::vec3 position;
};
int isInSubnet(const unsigned int addr);
int isMulticast(const unsigned int address);
int defineNetwork(unsigned int ipaddr,unsigned int subnetmask);
void networkEntityLoadData();
void initNetworkEntity();
NetworkEntity* getNetworkEntity(const unsigned int address);
NetworkEntity* addNetworkEntity(const unsigned int address);
void drawNetworkEntities();
void networkEntityLoadData();
#endif