1package com.jogamp.gluegen.test.junit.structgen;
3import com.jogamp.common.os.Platform;
4import com.jogamp.junit.util.SingletonJunitCase;
6import org.junit.Assert;
7import org.junit.BeforeClass;
9import org.junit.FixMethodOrder;
10import org.junit.runners.MethodSorters;
12@FixMethodOrder(MethodSorters.NAME_ASCENDING)
16 public static void init() {
25 final Pixel pixel = Pixel.create();
26 final Col4f color = pixel.getColor();
31 final Vec3f pos = pixel.getPos();
36 final Pixel pixel2 = Pixel.create(pixel.getBuffer());
37 final Col4f color2 = pixel2.getColor();
38 Assert.assertEquals(color.getR(), color2.getR(), 0.0001f);
39 Assert.assertEquals(color.getG(), color2.getG(), 0.0001f);
40 Assert.assertEquals(color.getB(), color2.getB(), 0.0001f);
41 Assert.assertEquals(color.getA(), color2.getA(), 0.0001f);
42 final Vec3f pos2 = pixel2.getPos();
43 Assert.assertEquals(pos.getX(), pos2.getX(), 0.0001f);
44 Assert.assertEquals(pos.getY(), pos2.getY(), 0.0001f);
45 Assert.assertEquals(pos.getZ(), pos2.getZ(), 0.0001f);
48 public static void main(
final String args[]) {
50 org.junit.runner.JUnitCore.
main(tstname);
Class simply triggering CStruct annotation processor to generate the types 'RenderingConfig' etc.
static void initSingleton()
static void main(final String args[])