GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ProgrammingMuffin/MiniEngine: A tiny OpenGL based rendering engine written in Java and LWJGL

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
bin
bin
 
 
src/main
src/main
 
 
.classpath
.classpath
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
dependency-reduced-pom.xml
dependency-reduced-pom.xml
 
 
miniengine.png
miniengine.png
 
 
pom.xml
pom.xml
 
 
readme.md
readme.md
 
 

Repository files navigation

Mini Engine (exploratory)

Mini Engine is a very tiny and lightweight OpenGL based rendering engine which can be used very flexibly and with ease. Mini Engine can be used for quickly writing prototypes of games where you can use your own physics and entity component system etc. It can even be used for writing any OpenGL accelerated graphical programs like a picture drawing program or a terminal emulator.

How do you write prototypes?

Writing prototypes is as simple as this:

import engine.Init;
import engine.models.*;
import org.lwjgl.glfw.GLFW;

import java.util.ArrayList;

public class Application {

    public static void main(String[] args) {
        System.out.println("Running game");
        Init.init();
        ArrayList<IRenderData> coloredRectangles = new ArrayList<>();
        coloredRectangles.add(GradientQuad.builder().x(-400).y(-400)
                .width(400).height(400).rgb(new RGBWrapper(120, 150, 120)).build());
        coloredRectangles.add(ColoredQuad.builder().x(100).y(0)
                .width(250).height(150).rgb(new RGBWrapper(0, 255, 180)).build());
        coloredRectangles.add(TextureQuad.builder().x(-100).y(100)
                .width(300).height(300).image("doge.jpg").build());
        while (true) {
            coloredRectangles.forEach(rectangle -> {
                rectangle.getRenderType().getRenderingStrategy().execute(rectangle);
            });
            GLFW.glfwSwapBuffers(Init.window);
            GLFW.glfwPollEvents();
        }
    }
}

What does the above program look like?

The above program gives the following output

MiniEngine simple program

Installation and Running

  • Install Maven (Maven 3 is recommended)
  • Install Java JRE and JDK (At least Java 11)
  • mvn package
  • java -jar target/

About

A tiny OpenGL based rendering engine written in Java and LWJGL

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.