~ubuntu-branches/ubuntu/saucy/kate/saucy

« back to all changes in this revision

Viewing changes to examples/syntax/highlight.glsl

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:48:29 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20130621004829-y2ui02eg0j47h94y
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Update and sort install files
  - Drop kubuntu_pate_find_python.diff, kubuntu_kate_initial_preference.patch,
    kubuntu_find_python.diff from debian/patches , not required

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This is a test file for the Katepart GLSL Syntax Highlighting.
 
2
 
 
3
normal text
 
4
// this is a single-line comment
 
5
normal text
 
6
/* this
 
7
is a multi-line 
 
8
comment */
 
9
normal text
 
10
 
 
11
some_symbol.some_member;
 
12
some_symbol.some_member_function();
 
13
some_function();
 
14
 
 
15
// this is a function
 
16
void main()
 
17
{
 
18
        float f = 1.4e3; // decimal float literal
 
19
        int i1 = 2884;   // decimal int literal
 
20
        int i2 = 0x44;   // hex int literal
 
21
        int i3 = 0456;   // octal int literal
 
22
}
 
23
 
 
24
// this is a structure
 
25
struct some_struct
 
26
{
 
27
        vec3 some_member_vector;
 
28
};
 
29
 
 
30
# this is 
 
31
#preprocessor code
 
32
 
 
33
// all keywords
 
34
break continue do for while
 
35
if else
 
36
true false
 
37
discard return
 
38
struct
 
39
 
 
40
// all basic types
 
41
float int void bool
 
42
mat2 mat3 mat4
 
43
vec2 vec3 vec4
 
44
ivec2 ivec3 ivec4
 
45
bvec2 bvec3 bvec4
 
46
sampler1D sampler2D sampler3D
 
47
samplerCube sampler1DShadow sampler1DShadow
 
48
 
 
49
// all type qualifiers
 
50
attribute const uniform varying
 
51
in out inout
 
52
 
 
53
// attensions:
 
54
// FIXME
 
55
// TODO
 
56
// BUG
 
57
 
 
58
// some of the std functions
 
59
radians degrees sin cos tan asin acos atan
 
60
 
 
61
// some of the std variables
 
62
gl_Position gl_PointSize gl_ClipVertex