当前位置: 首页>>代码示例>>Java>>正文


Java GL11.glGetString方法代码示例

本文整理汇总了Java中org.lwjgl.opengl.GL11.glGetString方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glGetString方法的具体用法?Java GL11.glGetString怎么用?Java GL11.glGetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.lwjgl.opengl.GL11的用法示例。


在下文中一共展示了GL11.glGetString方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initDisplay

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
 * @see org.newdawn.slick.opengl.renderer.SGL#initDisplay(int, int)
 */
public void initDisplay(int width, int height) {
	this.width = width;
	this.height = height;
	
	String extensions = GL11.glGetString(GL11.GL_EXTENSIONS);
	
	GL11.glEnable(GL11.GL_TEXTURE_2D);
	GL11.glShadeModel(GL11.GL_SMOOTH);        
	GL11.glDisable(GL11.GL_DEPTH_TEST);
	GL11.glDisable(GL11.GL_LIGHTING);                    
       
	GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);                
       GL11.glClearDepth(1);                                       
       
       GL11.glEnable(GL11.GL_BLEND);
       GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
       
       GL11.glViewport(0,0,width,height);
	GL11.glMatrixMode(GL11.GL_MODELVIEW);
}
 
开发者ID:j-dong,项目名称:trashjam2017,代码行数:24,代码来源:ImmediateModeOGLRenderer.java

示例2: startup

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void startup(Minecraft mc)
{
    checkShadersModInstalled();
    mc = Minecraft.getMinecraft();
    capabilities = GLContext.getCapabilities();
    glVersionString = GL11.glGetString(GL11.GL_VERSION);
    glVendorString = GL11.glGetString(GL11.GL_VENDOR);
    glRendererString = GL11.glGetString(GL11.GL_RENDERER);
    SMCLog.info("ShadersMod version: 2.4.12");
    SMCLog.info("OpenGL Version: " + glVersionString);
    SMCLog.info("Vendor:  " + glVendorString);
    SMCLog.info("Renderer: " + glRendererString);
    SMCLog.info("Capabilities: " + (capabilities.OpenGL20 ? " 2.0 " : " - ") + (capabilities.OpenGL21 ? " 2.1 " : " - ") + (capabilities.OpenGL30 ? " 3.0 " : " - ") + (capabilities.OpenGL32 ? " 3.2 " : " - ") + (capabilities.OpenGL40 ? " 4.0 " : " - "));
    SMCLog.info("GL_MAX_DRAW_BUFFERS: " + GL11.glGetInteger(GL20.GL_MAX_DRAW_BUFFERS));
    SMCLog.info("GL_MAX_COLOR_ATTACHMENTS_EXT: " + GL11.glGetInteger(36063));
    SMCLog.info("GL_MAX_TEXTURE_IMAGE_UNITS: " + GL11.glGetInteger(GL20.GL_MAX_TEXTURE_IMAGE_UNITS));
    hasGlGenMipmap = capabilities.OpenGL30;
    loadConfig();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:20,代码来源:Shaders.java

示例3: startup

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void startup(Minecraft mc)
{
    checkShadersModInstalled();
    Shaders.mc = mc;
    mc = Minecraft.getMinecraft();
    capabilities = GLContext.getCapabilities();
    glVersionString = GL11.glGetString(GL11.GL_VERSION);
    glVendorString = GL11.glGetString(GL11.GL_VENDOR);
    glRendererString = GL11.glGetString(GL11.GL_RENDERER);
    SMCLog.info("ShadersMod version: 2.4.12");
    SMCLog.info("OpenGL Version: " + glVersionString);
    SMCLog.info("Vendor:  " + glVendorString);
    SMCLog.info("Renderer: " + glRendererString);
    SMCLog.info("Capabilities: " + (capabilities.OpenGL20 ? " 2.0 " : " - ") + (capabilities.OpenGL21 ? " 2.1 " : " - ") + (capabilities.OpenGL30 ? " 3.0 " : " - ") + (capabilities.OpenGL32 ? " 3.2 " : " - ") + (capabilities.OpenGL40 ? " 4.0 " : " - "));
    SMCLog.info("GL_MAX_DRAW_BUFFERS: " + GL11.glGetInteger(GL20.GL_MAX_DRAW_BUFFERS));
    SMCLog.info("GL_MAX_COLOR_ATTACHMENTS_EXT: " + GL11.glGetInteger(36063));
    SMCLog.info("GL_MAX_TEXTURE_IMAGE_UNITS: " + GL11.glGetInteger(GL20.GL_MAX_TEXTURE_IMAGE_UNITS));
    hasGlGenMipmap = capabilities.OpenGL30;
    loadConfig();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:Shaders.java

示例4: getGlVersion

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static GlVersion getGlVersion()
{
    if (glVersion == null)
    {
        String s = GL11.glGetString(GL11.GL_VERSION);
        glVersion = parseGlVersion(s, (GlVersion)null);

        if (glVersion == null)
        {
            glVersion = getGlVersionLwjgl();
        }

        if (glVersion == null)
        {
            glVersion = new GlVersion(1, 0);
        }
    }

    return glVersion;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:Config.java

示例5: checkOpenGlCaps

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private static void checkOpenGlCaps()
{
    log("");
    log(getVersion());
    log("Build: " + getBuild());
    log("OS: " + System.getProperty("os.name") + " (" + System.getProperty("os.arch") + ") version " + System.getProperty("os.version"));
    log("Java: " + System.getProperty("java.version") + ", " + System.getProperty("java.vendor"));
    log("VM: " + System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.info") + "), " + System.getProperty("java.vm.vendor"));
    log("LWJGL: " + Sys.getVersion());
    openGlVersion = GL11.glGetString(GL11.GL_VERSION);
    openGlRenderer = GL11.glGetString(GL11.GL_RENDERER);
    openGlVendor = GL11.glGetString(GL11.GL_VENDOR);
    log("OpenGL: " + openGlRenderer + ", version " + openGlVersion + ", " + openGlVendor);
    log("OpenGL Version: " + getOpenGlVersionString());

    if (!GLContext.getCapabilities().OpenGL12)
    {
        log("OpenGL Mipmap levels: Not available (GL12.GL_TEXTURE_MAX_LEVEL)");
    }

    fancyFogAvailable = GLContext.getCapabilities().GL_NV_fog_distance;

    if (!fancyFogAvailable)
    {
        log("OpenGL Fancy fog: Not available (GL_NV_fog_distance)");
    }

    occlusionAvailable = GLContext.getCapabilities().GL_ARB_occlusion_query;

    if (!occlusionAvailable)
    {
        log("OpenGL Occlussion culling: Not available (GL_ARB_occlusion_query)");
    }

    int i = Minecraft.getGLMaximumTextureSize();
    dbg("Maximum texture size: " + i + "x" + i);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:38,代码来源:Config.java

示例6: checkOpenGlCaps

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private static void checkOpenGlCaps()
{
    log("");
    log(getVersion());
    log("" + new Date());
    log("OS: " + System.getProperty("os.name") + " (" + System.getProperty("os.arch") + ") version " + System.getProperty("os.version"));
    log("Java: " + System.getProperty("java.version") + ", " + System.getProperty("java.vendor"));
    log("VM: " + System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.info") + "), " + System.getProperty("java.vm.vendor"));
    log("LWJGL: " + Sys.getVersion());
    openGlVersion = GL11.glGetString(GL11.GL_VERSION);
    openGlRenderer = GL11.glGetString(GL11.GL_RENDERER);
    openGlVendor = GL11.glGetString(GL11.GL_VENDOR);
    log("OpenGL: " + openGlRenderer + ", version " + openGlVersion + ", " + openGlVendor);
    log("OpenGL Version: " + getOpenGlVersionString());

    if (!GLContext.getCapabilities().OpenGL12)
    {
        log("OpenGL Mipmap levels: Not available (GL12.GL_TEXTURE_MAX_LEVEL)");
    }

    fancyFogAvailable = GLContext.getCapabilities().GL_NV_fog_distance;

    if (!fancyFogAvailable)
    {
        log("OpenGL Fancy fog: Not available (GL_NV_fog_distance)");
    }

    occlusionAvailable = GLContext.getCapabilities().GL_ARB_occlusion_query;

    if (!occlusionAvailable)
    {
        log("OpenGL Occlussion culling: Not available (GL_ARB_occlusion_query)");
    }

    int i = Minecraft.getGLMaximumTextureSize();
    dbg("Maximum texture size: " + i + "x" + i);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:38,代码来源:Config.java

示例7: checkOpenGlCaps

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private static void checkOpenGlCaps()
{
    log("");
    log(getVersion());
    log("Build: " + getBuild());
    log("OS: " + System.getProperty("os.name") + " (" + System.getProperty("os.arch") + ") version " + System.getProperty("os.version"));
    log("Java: " + System.getProperty("java.version") + ", " + System.getProperty("java.vendor"));
    log("VM: " + System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.info") + "), " + System.getProperty("java.vm.vendor"));
    log("LWJGL: " + Sys.getVersion());
    openGlVersion = GL11.glGetString(GL11.GL_VERSION);
    openGlRenderer = GL11.glGetString(GL11.GL_RENDERER);
    openGlVendor = GL11.glGetString(GL11.GL_VENDOR);
    log("OpenGL: " + openGlRenderer + ", version " + openGlVersion + ", " + openGlVendor);
    log("OpenGL Version: " + getOpenGlVersionString());

    if (!GLContext.getCapabilities().OpenGL12)
    {
        log("OpenGL Mipmap levels: Not available (GL12.GL_TEXTURE_MAX_LEVEL)");
    }

    fancyFogAvailable = GLContext.getCapabilities().GL_NV_fog_distance;

    if (!fancyFogAvailable)
    {
        log("OpenGL Fancy fog: Not available (GL_NV_fog_distance)");
    }

    occlusionAvailable = GLContext.getCapabilities().GL_ARB_occlusion_query;

    if (!occlusionAvailable)
    {
        log("OpenGL Occlussion culling: Not available (GL_ARB_occlusion_query)");
    }

    int i = TextureUtils.getGLMaximumTextureSize();
    dbg("Maximum texture size: " + i + "x" + i);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:38,代码来源:Config.java

示例8: getGlslVersion

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static GlVersion getGlslVersion()
{
    if (glslVersion == null)
    {
        String s = GL11.glGetString(GL20.GL_SHADING_LANGUAGE_VERSION);
        glslVersion = parseGlVersion(s, (GlVersion)null);

        if (glslVersion == null)
        {
            glslVersion = new GlVersion(1, 10);
        }
    }

    return glslVersion;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:16,代码来源:Config.java

示例9: detectOpenGlExtensions

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private static String[] detectOpenGlExtensions()
{
    try
    {
        GlVersion glversion = getGlVersion();

        if (glversion.getMajor() >= 3)
        {
            int i = GL11.glGetInteger(33309);

            if (i > 0)
            {
                String[] astring = new String[i];

                for (int j = 0; j < i; ++j)
                {
                    astring[j] = GL30.glGetStringi(7939, j);
                }

                return astring;
            }
        }
    }
    catch (Exception exception1)
    {
        exception1.printStackTrace();
    }

    try
    {
        String s = GL11.glGetString(GL11.GL_EXTENSIONS);
        String[] astring1 = s.split(" ");
        return astring1;
    }
    catch (Exception exception)
    {
        exception.printStackTrace();
        return new String[0];
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:41,代码来源:Config.java

示例10: glGetString

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static String glGetString(int p_187416_0_)
{
    return GL11.glGetString(p_187416_0_);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:GlStateManager.java


注:本文中的org.lwjgl.opengl.GL11.glGetString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。