Skip to content

Latest commit

 

History

158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

8 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages