In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
| /* | |
| * Function that handles the drawing of a circle using the triangle fan | |
| * method. This will create a filled circle. | |
| * | |
| * Params: | |
| * x (GLFloat) - the x position of the center point of the circle | |
| * y (GLFloat) - the y position of the center point of the circle | |
| * radius (GLFloat) - the radius that the painted circle will have | |
| */ | |
| void drawFilledCircle(GLfloat x, GLfloat y, GLfloat radius){ |
| //THE DARK KNIGHT logo openGL code | |
| //--Brad | |
| //change the include files accordingly | |
| #include <stdlib.h> | |
| #include<GL/gl.h> | |
| #include<GL/glu.h> | |
| #include<GL/glut.h> | |
| #include<unistd.h> |
| import javafx.application.Application; | |
| import javafx.beans.binding.Bindings; | |
| import javafx.beans.property.*; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.input.KeyEvent; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.*; |