This file contains 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
package org.redbull4.helloworld; | |
import java.util.Scanner; | |
public class Hello { | |
static Scanner sc = new Scanner(System.in); | |
public static int getRandomNumber(final int a, final int b) { | |
double output = Math.random() * ((b - a - 1) + a); |
This file contains 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 <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
#include <fstream> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
void scanShaderForErrors(GLuint &shader, const GLuint &shaderType) { | |
int success; | |
char LOG[WCHAR_MAX]; |
This file contains 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 <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
#include <glm/glm.hpp> | |
#include <iostream> | |
using namespace std; | |
GLFWwindow* window = NULL; | |
GLFWmonitor* monitor = NULL; | |
void setWindowFillColor(const uint16_t& r, const uint16_t& g, |
This file contains 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
--- | |
BasedOnStyle: Google | |
AlignAfterOpenBracket: Align | |
AlignOperands: 'true' | |
AllowAllArgumentsOnNextLine: 'true' | |
AllowAllConstructorInitializersOnNextLine: 'true' | |
AllowAllParametersOfDeclarationOnNextLine: 'true' | |
AllowShortBlocksOnASingleLine: 'true' | |
AllowShortFunctionsOnASingleLine: All | |
AlwaysBreakTemplateDeclarations: 'Yes' |
This file contains 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 <iostream> | |
using namespace std; | |
#define FIRST 'x' | |
#define SECOND '0' | |
char arr[3][3]; | |
void check() { | |
string horizontally, vertically, oblique, _oblique; |
This file contains 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
#ifndef SimpleString_hpp | |
#define SimpleString_hpp | |
#include <cinttypes> | |
#include <iostream> | |
class SimpleString { | |
public: | |
SimpleString() {} |
This file contains 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 <GLES3/gl3.h> | |
#include <SDL2/SDL.h> | |
struct window_data { | |
const unsigned int width = 800, height = 600, x = SDL_WINDOWPOS_CENTERED, | |
y = SDL_WINDOWPOS_CENTERED; | |
SDL_Color fill_color; | |
} window_data; | |
SDL_Window *window; |
This file contains 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 <GLES3/gl3.h> | |
#include <SDL2/SDL.h> | |
struct window_data { | |
const unsigned int width = 800, height = 600, x = SDL_WINDOWPOS_CENTERED, | |
y = SDL_WINDOWPOS_CENTERED; | |
SDL_Color fill_color; | |
} window_data; | |
SDL_Window *window; |
This file contains 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 <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
float MOVEMENT_SPEED=0.08; | |
const Uint8 *key=SDL_GetKeyboardState(NULL); | |
SDL_Window *window; | |
SDL_Event event; | |
SDL_GLContext glContext; |
This file contains 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 <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
float rotate_x=0; | |
float rotate_y=0; | |
SDL_Window *window; | |
SDL_Event event; |
NewerOlder