Skip to content

Commit

Permalink
added shaders to data folder. split data folder into textures and sha…
Browse files Browse the repository at this point in the history
…ders.
  • Loading branch information
R-Rudolph committed Oct 17, 2014
1 parent 0fecd16 commit 0ec3740
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MovingCube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void init_MovingCubes()

cubes_M_att_coord=new Attribute_vbo(*new VertexBufferObject(coords,3,sizeof(coords)),"coord3d",*simpleProgram);
cubes_M_att_texcoord=new Attribute_vbo(*new VertexBufferObject(texcoords,2,sizeof(texcoords)),"tex_coord",*simpleProgram);
cubes_M_att_texture=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "ip.png"), GL_TEXTURE0, "texture", *simpleProgram);
cubes_M_att_texture=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "textures/ip.png"), GL_TEXTURE0, "texture", *simpleProgram);
cubes_M_elems = new glElement(elems,sizeof(elems));
cubes_M_att_coord->enable();
cubes_M_att_texcoord->enable();
Expand Down
2 changes: 1 addition & 1 deletion MovingCube.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "sniffer.hpp"
#include "gframework/graphicsframework.hpp"
#include "NetworkEntities.hpp"
#include "Ressources.hpp"
#include "resources.hpp"

class MovingCube
{
Expand Down
6 changes: 3 additions & 3 deletions NetworkEntities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ void networkEntityLoadData()
};
netent_M_att_coord=new Attribute_vbo(*new VertexBufferObject(coords,3,sizeof(coords)),"coord3d",*simpleProgram);
netent_M_att_texcoord=new Attribute_vbo(*new VertexBufferObject(texcoords,2,sizeof(texcoords)),"tex_coord",*simpleProgram);
netent_M_att_texture=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "netentitity.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_att_texture_sink=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "local.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_att_texture_external=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "external.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_att_texture=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "textures/netentitity.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_att_texture_sink=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "textures/local.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_att_texture_external=new Attribute_texture(*new Texture(NETWORK_VISUALIZER_RESSOURCE_PATH "textures/external.png"), GL_TEXTURE0, "texture", *simpleProgram);
netent_M_elems = new glElement(elems,sizeof(elems));
}

2 changes: 1 addition & 1 deletion NetworkEntities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "gframework/graphicsframework.hpp"
#include "Ressources.hpp"
#include "resources.hpp"

class NetworkEntity
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ void updateCam()

int init_resources()
{
simpleVS= new Shader("shader/simple.vs.c",GL_VERTEX_SHADER);
simpleFS= new Shader("shader/simple.fs.c",GL_FRAGMENT_SHADER);
simpleVS= new Shader(NETWORK_VISUALIZER_RESSOURCE_PATH "shader/simple.vs.c",GL_VERTEX_SHADER);
simpleFS= new Shader(NETWORK_VISUALIZER_RESSOURCE_PATH "shader/simple.fs.c",GL_FRAGMENT_SHADER);
simpleProgram = new SProgram(*simpleVS,*simpleFS);
uniform_proj=uniform_init("proj",*simpleProgram);
uniform_pos=uniform_init("obj_pos",*simpleProgram);
Expand Down
File renamed without changes.

0 comments on commit 0ec3740

Please sign in to comment.