Package org.terasology.editor.properties

Examples of org.terasology.editor.properties.ReflectionProvider


        shaderPropertyMenuEntries.clear();
        shaderPropertiesMenu.removeAll();
        for (GLSLMaterial material : CoreRegistry.get(AssetManager.class).listLoadedAssets(AssetType.MATERIAL, GLSLMaterial.class)) {
            if (material.getShaderParameters() != null) {
                GLSLMaterial finalMat = material;
                final PropertyProvider provider = new ReflectionProvider(finalMat.getShaderParameters());
                if (!provider.getProperties().isEmpty()) {
                    final String programName = material.getURI().toString();
                    JMenuItem menuItem = new JMenuItem(programName);
                    menuItem.addActionListener(new ActionListener() {
                        @Override
                        public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP

Related Classes of org.terasology.editor.properties.ReflectionProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.