Oolite
1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
src
Core
Materials
OOShaderUniformMethodType.h
Go to the documentation of this file.
1
/*
2
3
OOShaderUniformMethodType.h
4
5
Type code declarations and OpenStep implementation agnostic method type
6
matching for uniform bindings.
7
8
9
Copyright (C) 2007-2013 Jens Ayton
10
11
Permission is hereby granted, free of charge, to any person obtaining a copy
12
of this software and associated documentation files (the "Software"), to deal
13
in the Software without restriction, including without limitation the rights
14
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
copies of the Software, and to permit persons to whom the Software is
16
furnished to do so, subject to the following conditions:
17
18
The above copyright notice and this permission notice shall be included in all
19
copies or substantial portions of the Software.
20
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
SOFTWARE.
28
29
*/
30
31
#import "
OOOpenGLExtensionManager.h
"
32
33
#if OO_SHADERS || !defined(NDEBUG)
34
35
#import "
OOMaths.h
"
36
#import "
OOHPVector.h
"
37
38
39
typedef
enum
40
{
41
kOOShaderUniformTypeInvalid
,
// Not valid for bindings or constants
42
43
kOOShaderUniformTypeChar
,
// Binding only
44
kOOShaderUniformTypeUnsignedChar
,
// Binding only
45
kOOShaderUniformTypeShort
,
// Binding only
46
kOOShaderUniformTypeUnsignedShort
,
// Binding only
47
kOOShaderUniformTypeInt
,
// Binding or constant
48
kOOShaderUniformTypeUnsignedInt
,
// Binding only
49
kOOShaderUniformTypeLong
,
// Binding only
50
kOOShaderUniformTypeUnsignedLong
,
// Binding only
51
kOOShaderUniformTypeLongLong
,
// Binding only
52
kOOShaderUniformTypeUnsignedLongLong
,
// Binding only
53
kOOShaderUniformTypeFloat
,
// Binding or constant
54
kOOShaderUniformTypeDouble
,
// Binding only
55
kOOShaderUniformTypeVector
,
// Binding or constant
56
kOOShaderUniformTypeHPVector
,
// Binding only
57
kOOShaderUniformTypeQuaternion
,
// Binding or constant
58
kOOShaderUniformTypeMatrix
,
// Binding or constant
59
kOOShaderUniformTypePoint
,
// Binding only
60
kOOShaderUniformTypeObject
,
// Binding only
61
62
kOOShaderUniformTypeCount
// Not valid for bindings or constants
63
}
OOShaderUniformType
;
64
65
66
OOShaderUniformType
OOShaderUniformTypeFromMethodSignature
(NSMethodSignature *signature);
67
68
long
long
OOCallIntegerMethod
(
id
object
,
SEL
selector, IMP method,
OOShaderUniformType
type);
69
double
OOCallFloatMethod
(
id
object
,
SEL
selector, IMP method,
OOShaderUniformType
type);
70
71
72
typedef
char (*
CharReturnMsgSend
)(id, SEL);
73
typedef
unsigned
char (*
UnsignedCharReturnMsgSend
)(id, SEL);
74
typedef
short (*
ShortReturnMsgSend
)(id, SEL);
75
typedef
unsigned
short (*
UnsignedShortReturnMsgSend
)(id, SEL);
76
typedef
int
(*
IntReturnMsgSend
)(id, SEL);
77
typedef
unsigned
int
(*
UnsignedIntReturnMsgSend
)(id, SEL);
78
typedef
long
(*
LongReturnMsgSend
)(id, SEL);
79
typedef
unsigned
long
(*
UnsignedLongReturnMsgSend
)(id, SEL);
80
typedef
long
long
(*
LongLongReturnMsgSend
)(id, SEL);
81
typedef
unsigned
long
long
(*
UnsignedLongLongReturnMsgSend
)(id, SEL);
82
typedef
float (*
FloatReturnMsgSend
)(id, SEL);
83
typedef
double (*
DoubleReturnMsgSend
)(id, SEL);
84
typedef
Vector (*
VectorReturnMsgSend
)(id, SEL);
85
typedef
HPVector (*
HPVectorReturnMsgSend
)(id, SEL);
86
typedef
Quaternion (*
QuaternionReturnMsgSend
)(id, SEL);
87
typedef
OOMatrix (*
MatrixReturnMsgSend
)(id, SEL);
88
typedef
NSPoint (*
PointReturnMsgSend
)(id, SEL);
89
typedef
id (*
ObjectReturnMsgSend
)(id, SEL);
90
91
#endif
// OO_SHADERS
OOHPVector.h
OOMaths.h
OOOpenGLExtensionManager.h
IntReturnMsgSend
int(* IntReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:76
UnsignedIntReturnMsgSend
unsigned int(* UnsignedIntReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:77
OOCallIntegerMethod
long long OOCallIntegerMethod(id object, SEL selector, IMP method, OOShaderUniformType type)
Definition
OOShaderUniformMethodType.m:248
DoubleReturnMsgSend
double(* DoubleReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:83
CharReturnMsgSend
char(* CharReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:72
LongLongReturnMsgSend
long long(* LongLongReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:80
ShortReturnMsgSend
short(* ShortReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:74
UnsignedCharReturnMsgSend
unsigned char(* UnsignedCharReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:73
UnsignedLongReturnMsgSend
unsigned long(* UnsignedLongReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:79
HPVectorReturnMsgSend
HPVector(* HPVectorReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:85
ObjectReturnMsgSend
id(* ObjectReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:89
OOShaderUniformTypeFromMethodSignature
OOShaderUniformType OOShaderUniformTypeFromMethodSignature(NSMethodSignature *signature)
Definition
OOShaderUniformMethodType.m:62
OOCallFloatMethod
double OOCallFloatMethod(id object, SEL selector, IMP method, OOShaderUniformType type)
Definition
OOShaderUniformMethodType.m:288
VectorReturnMsgSend
Vector(* VectorReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:84
UnsignedShortReturnMsgSend
unsigned short(* UnsignedShortReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:75
OOShaderUniformType
OOShaderUniformType
Definition
OOShaderUniformMethodType.h:40
kOOShaderUniformTypeCount
@ kOOShaderUniformTypeCount
Definition
OOShaderUniformMethodType.h:62
kOOShaderUniformTypeQuaternion
@ kOOShaderUniformTypeQuaternion
Definition
OOShaderUniformMethodType.h:57
kOOShaderUniformTypeMatrix
@ kOOShaderUniformTypeMatrix
Definition
OOShaderUniformMethodType.h:58
kOOShaderUniformTypeVector
@ kOOShaderUniformTypeVector
Definition
OOShaderUniformMethodType.h:55
kOOShaderUniformTypeLong
@ kOOShaderUniformTypeLong
Definition
OOShaderUniformMethodType.h:49
kOOShaderUniformTypeUnsignedChar
@ kOOShaderUniformTypeUnsignedChar
Definition
OOShaderUniformMethodType.h:44
kOOShaderUniformTypeShort
@ kOOShaderUniformTypeShort
Definition
OOShaderUniformMethodType.h:45
kOOShaderUniformTypePoint
@ kOOShaderUniformTypePoint
Definition
OOShaderUniformMethodType.h:59
kOOShaderUniformTypeUnsignedLong
@ kOOShaderUniformTypeUnsignedLong
Definition
OOShaderUniformMethodType.h:50
kOOShaderUniformTypeFloat
@ kOOShaderUniformTypeFloat
Definition
OOShaderUniformMethodType.h:53
kOOShaderUniformTypeUnsignedInt
@ kOOShaderUniformTypeUnsignedInt
Definition
OOShaderUniformMethodType.h:48
kOOShaderUniformTypeUnsignedShort
@ kOOShaderUniformTypeUnsignedShort
Definition
OOShaderUniformMethodType.h:46
kOOShaderUniformTypeLongLong
@ kOOShaderUniformTypeLongLong
Definition
OOShaderUniformMethodType.h:51
kOOShaderUniformTypeUnsignedLongLong
@ kOOShaderUniformTypeUnsignedLongLong
Definition
OOShaderUniformMethodType.h:52
kOOShaderUniformTypeDouble
@ kOOShaderUniformTypeDouble
Definition
OOShaderUniformMethodType.h:54
kOOShaderUniformTypeObject
@ kOOShaderUniformTypeObject
Definition
OOShaderUniformMethodType.h:60
kOOShaderUniformTypeHPVector
@ kOOShaderUniformTypeHPVector
Definition
OOShaderUniformMethodType.h:56
kOOShaderUniformTypeInt
@ kOOShaderUniformTypeInt
Definition
OOShaderUniformMethodType.h:47
kOOShaderUniformTypeChar
@ kOOShaderUniformTypeChar
Definition
OOShaderUniformMethodType.h:43
kOOShaderUniformTypeInvalid
@ kOOShaderUniformTypeInvalid
Definition
OOShaderUniformMethodType.h:41
QuaternionReturnMsgSend
Quaternion(* QuaternionReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:86
FloatReturnMsgSend
float(* FloatReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:82
UnsignedLongLongReturnMsgSend
unsigned long long(* UnsignedLongLongReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:81
PointReturnMsgSend
NSPoint(* PointReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:88
LongReturnMsgSend
long(* LongReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:78
MatrixReturnMsgSend
OOMatrix(* MatrixReturnMsgSend)(id, SEL)
Definition
OOShaderUniformMethodType.h:87
long
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
int
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
Generated by
1.12.0