PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 9, 2022

[FIXED] What keywords GLSL introduce to C?

 July 09, 2022     glsl, keyword, syntax-highlighting     No comments   

Issue

So we have in C:

auto if break int case long char register
continue return default short do sizeof 
double static else struct entry switch extern
typedef float union for unsigned 
goto while enum void const signed volatile

What new keywords OpenGL (ES) Shader Language provide to us?

I am new to GLSL and I want to create some highlight editing util for ease of use.

Math words included into GLSL will count as keywords..?


Solution

You probably want to get the OpenGL ES GLSL language specification. §3.6 lists the keywords (plus a number of reserved words that aren't keywords, but you're not supposed to use anyway, so they probably merit some sort of color coding as well).

Edit: Oops, I grabbed the wrong link there. My apologies. The current specs are:

OpenGL 4.1 GLSL
OpenGL ES 2.0 GLSL



Answered By - Jerry Coffin
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing