android {
...
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
}
cmake_minimum_required(VERSION 3.10) # common to every CLion project
project(OpenGLLinuxTest) # project name
set(OpenGlLinkers -lglut -lGLU -lGL) # setting all the Glut libraries as one variable.
################################################
add_executable(OpenGLLinuxTest1 main.cpp ) #common to all clion project
target_link_libraries(OpenGLLinuxTest1 ${OpenGlLinkers}) # linking opengl libraries to the project
#################################################
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
void displayMe(void){
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glColor3b(250,100,0);
glVertex2f(1, 0.0);
glVertex2f(0.0, 1);
glVertex2f(0.0, 0.0);
glEnd();
glutSwapBuffers();
}
int main(int argc, char** argv){
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
glutInitWindowSize(1368, 728);
glutInitWindowPosition(0,0);
glutCreateWindow("Hello world!");
glutDisplayFunc(displayMe);
gluOrtho2D(0, 5, 0, 5);
glutMainLoop();
return 0;
}
FROM node:14.7.0-alpine
WORKDIR /app
ENV NODE_ENV local
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
CMD ["/bin/node", "./bin/www"]
EXPOSE 3000
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://45.77.173.22:8080/$1 [P,L]