Skip to content

Instantly share code, notes, and snippets.

View ankitpriyarup's full-sized avatar
🐒

Ankit Priyarup ankitpriyarup

🐒
View GitHub Profile
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
int main1(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
//Instead of specifying through OpenGL that it's a triangle we can specify it more flexibly
int main(void)
{
GLFWwindow* window;
if (!glfwInit())
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
//We need a shader to see what's drawn
//Two major type of shader - Vertex shader & Frament or Pixel Shader other types also
//Vertex shader task is to specify positioning based on the rendering screen
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
struct ShaderProgramSource
{
std::string VertexShader;
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
//In the previous square example two coordinates are repeated in positions which means we can optimize it further
//In cases where complex model is displayed this minor change plays a big role
//Index buffer is used to achieve this result
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
//To get data from cpu to gpu attribute is passed through buffer however there is another way to do so by uniform
//Attributes are per vertex used whereas uniforms are used per draw calls
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#define ASSERT(x) if (!(x)) __debugbreak();
#define GLCall(x) GLClearError();\
x;\
# Sync with upstream, humne branch pull kara thaa changes maare uspe par kisi aur ne uspar kaam kardiaa toh this command will sync our code with the github server. but humare changes remove kardetaa he ye
git remote add upstream /url/to/original/repo.git
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
# Squash 3 commits
# Kabhi kabhi hum jab PR daalte he toh review karne waale bolte he ki 2-3 commits ko ekk banaa do for simplicity this command does that
git reset --soft HEAD~3 && git commit

GSoC Project Report 1

Project Name: GDScript Language Server
Student: Ankit Priyarup (@ankitpriyarup)
Mentors: Geequlim (@geequlim) and Jiacheng Lu (@jason0214)
Repositories:

GSoC Project Report 2

Project Name: GDScript Language Server
Student: Ankit Priyarup (@ankitpriyarup)
Mentors: Geequlim (@geequlim) and Jiacheng Lu (@jason0214)
Repositories: