Draft:BGraphics

From Wikipedia, the free encyclopedia
BGraphics logo

BGraphics is an open source 3D framework with it's purpose to improve game development & engine development with the programming language Java.

BGraphics requires the JavaFX framework in the first place to properly.

BGraphics simplifies the process of game development & engine development, as well as providing the developer with simple syntax to work with.

History[edit]

BGraphics was created on 28th of February, 2024.

BGraphics started as version a0001, standing for "Alpha V0.001"

As of February 2024, BGraphics is on version "SoA01", which "SoA" stands for "Start of Alpha".

Examples and tutorial[edit]

An example could be given as: "createWindow()".

The createWindow() "method" in the BGraphics library allows you to create an application window.

The "method" is used by first inserting the width & height, as well as 2 boolean variables that allow you to control whether you want to make the application window fit the screen resolution of the user's current monitor size, or be fullscreen.

createCanvas() is the method used for creating a canvas.

Canvases are used for drawing images, Vector, Line, Rectangle and other geometric shapes.

Below is an example of how you can initialize your own application window, as well as a canvas.

@Override
    public void start(Stage stage) throws IOException {
        createWindow(500, 500, true, true);

        Canvas myCanvas = createCanvas(0, 0, true, true, Color.WHITE);

    }

BGraphics allows you to make geometric shapes initialized with custom BGraphics classes. An example can be seen below of how to instantiate a geometric shape.

Vector myVector = new Vector(200, 200, 10, Color.BLACK);

The Vector class requires 4 different parameters to work properly; first and second one being the position on the Canvas, third class being a radius for the Vector class, last one being the color of the Vector.

The Vector class is an illustration of a circle.

BGraphics allows you to have a variety of geometric shapes to choose from.

BGraphics also has other classes such as; Line, Rectangle, Image etc...

BGraphics allows you to use a class named BProcessor to "connect" classes.

For example, a BProcessor could be used to render (or draw) an object with the class Vector.

Requirements[edit]

BGraphics requires the following to work properly on your project(s);


Java (programming language) ; version 16 or above.

JavaFX ; latest versions.