https://github.com/sueda/eol-cloth
Revision 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC, committed by GitHub on 11 September 2018, 15:17:28 UTC
1 parent 3c3ef84
Tip revision: 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC
Create LICENSE
Create LICENSE
Tip revision: 28fad2e
Points.cpp
#include "Points.h"
#ifdef EOLC_ONLINE
#ifdef EOLC_ONLINE
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "glm/ext.hpp"
#include "online/Program.h"
#include "online/MatrixStack.h"
#endif // EOLC_ONLINE
using namespace std;
void Points::drawSimple(shared_ptr<MatrixStack> MV, const shared_ptr<Program> prog) const
{
for (int i = 0; i < pxyz.cols(); i++) {
glColor3f(0.0f, 1.0f, 1.0f);
glPointSize(10.0f);
glBegin(GL_POINTS);
glVertex3f(pxyz(0,i), pxyz(1, i), pxyz(2, i));
glEnd();
}
}
#endif // EOLC_ONLINE
Computing file changes ...