void addFace(ofMesh& mesh, ofVec3f a, ofVec3f b, ofVec3f c) {
ofVec3f normal = ((b - a).cross(c - a)).normalize();
mesh.addNormal(normal);
mesh.addVertex(a);
mesh.addNormal(normal);
mesh.addVertex(b);
mesh.addNormal(normal);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <shared/VideoSurface.h> | |
| GLuint VideoSurface::prog = 0; | |
| GLint VideoSurface::u_pm = 0; | |
| GLint VideoSurface::u_mm = 0; | |
| GLint VideoSurface::u_tex = 0; | |
| GLfloat VideoSurface::pm[16] = {0}; | |
| VideoSurface::VideoSurface() | |
| :width(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "SSLBuffer.h" | |
| SSLBuffer::SSLBuffer() | |
| :ssl(NULL) | |
| ,read_bio(NULL) | |
| ,write_bio(NULL) | |
| ,write_to_socket_callback(NULL) | |
| ,write_to_socket_callback_data(NULL) | |
| ,read_decrypted_callback(NULL) | |
| ,read_decrypted_callback_data(NULL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _WIN32_WINNT 0x0500 | |
| #include <windows.h> | |
| #include <windowsx.h> | |
| #include <GL/gl.h> | |
| #include <GL/glu.h> | |
| #include <dwmapi.h> | |
| #pragma comment (lib, "opengl32.lib") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation. | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A console to display Unity's debug logs in-game. | |
| /// </summary> | |
| public class Console : MonoBehaviour | |
| { |
NewerOlder