Skip to content

Instantly share code, notes, and snippets.

View KamilChmielewski's full-sized avatar

KamilChmielewski

View GitHub Profile
@KamilChmielewski
KamilChmielewski / Application.cpp
Created February 8, 2018 11:00
Year 2 First Semester
#include "Application.h"
#include <string>
#include <iostream>
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
AllocConsole();
freopen("CONOUT$", "w", stdout);
PAINTSTRUCT ps;
HDC hdc;
@KamilChmielewski
KamilChmielewski / Camera2 Cpp
Created February 8, 2018 10:30
OpenGL University 1st year Second Semester
#include "Camera2.h"
#include "Player.h"
Camera2::Camera2()
{
}
Camera2::~Camera2()
{
}
#include "Application.h"
#include <string>
#include <iostream>
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
AllocConsole();
freopen("CONOUT$", "w", stdout);
PAINTSTRUCT ps;
HDC hdc;
#include "ModelLoader.h"
using namespace std;
namespace ModelLoader
{
void LoadVertices(ObjMesh& mesh, string& buffer);
void LoadFaces(ObjMesh& mesh, string &buffer);
void LoadTexCoords(ObjMesh& mesh, string &buffer);
void LoadNormals(ObjMesh& mesh, string &buffer);