...
首页> 外文期刊>C - C++ Users Journal >Cg and OpenGL Integration
【24h】

Cg and OpenGL Integration

机译:Cg和OpenGL集成

获取原文
获取原文并翻译 | 示例

摘要

Modern programmable graphics cards allow custom vertex and fragment programs to replace the fixed-function vertex and fragment stages of the graphics pipeline. Vertex and fragment programs can be written in low-level assembly languages or a high-level shader language such as NVIDIA'S Cg ("C for graphics"). Cg uses a familiar C-like syntax and provides runtime libraries for integrating Cg code with programs written for OpenGL or DirectX. In addition to the OpenOL runtime library, Cg and OpenGL can be integrated by using Cg's compiler to translate Cg into assembly-language programs accessible through OpenGL extensions. In this article, I explain how to incorporate Cg into OpenGL programs using the runtime library and the relevant OpenGL extensions.
机译:现代可编程图形卡允许自定义顶点和片段程序替换图形管线的固定功能顶点和片段阶段。顶点和片段程序可以用低级汇编语言或高级着色器语言(如NVIDIA's Cg(“图形C”))编写。 Cg使用类似C的语法,并提供运行时库,用于将Cg代码与为OpenGL或DirectX编写的程序集成。除了OpenOL运行时库之外,还可以通过使用Cg的编译器将Cg转换为可通过OpenGL扩展访问的汇编语言程序来集成Cg和OpenGL。在本文中,我将说明如何使用运行时库和相关的OpenGL扩展将Cg合并到OpenGL程序中。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号