BestSolution-at / efxclipse-drift-samples

Examples demonstrating DriftFX API usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DriftFX Samples Repository

This repo contains samples for DriftFX.

Contents

  • Native code (C++) Samples using the driftcpp api
    see org.eclipse.fx.drift.samples.cpp and org.eclipse.fx.drift.samples.cpp.native
  • Pure Java Samples using lwjgl
    see org.eclipse.fx.drift.samples.lwjgl
  • e4 sample (pde based)
    see driftfx-e4-sample

Contributions

If you create a sample which uses drift feel free to contribute it to this repo. We are happy to add all kinds of samples which use drift to render to java fx. ;-)

Usage

To simple start the samples use gradle:

Java 8

TBD

Java 11

OS-X/Linux

export JAVA_HOME=/path/to/your/jdk-11
export JAVA_HOME_11=$JAVA_HOME
gradle run11

Windows

TBD

Java 11 Notes

eclipse VM arguments

--module-path ${project_classpath:org.eclipse.fx.drift.samples} 
--add-modules javafx.controls

--add-exports javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.util=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.javafx.font=ALL-UNNAMED 
--add-exports javafx.graphics/com.sun.prism.paint=ALL-UNNAMED 
--add-opens javafx.graphics/com.sun.prism=ALL-UNNAMED
--add-opens javafx.graphics/com.sun.prism.es2=ALL-UNNAMED 
--add-opens javafx.graphics/com.sun.prism.d3d=ALL-UNNAMED 
--add-opens javafx.graphics/com.sun.prism.impl=ALL-UNNAMED

About

Examples demonstrating DriftFX API usage


Languages

Language:C 90.1%Language:GLSL 5.1%Language:Java 3.4%Language:C++ 1.3%Language:CMake 0.1%Language:CSS 0.0%