PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/google-toolbox-for-mac/AppKit/GTMShading.h

http://macfuse.googlecode.com/
C++ Header | 41 lines | 4 code | 4 blank | 33 comment | 0 complexity | 28969d734a36d5199fb401d0852243af MD5 | raw file
 1//
 2//  GTMShading.h
 3//
 4//  A protocol for an object that can be used as a shader.
 5//
 6//  Copyright 2006-2008 Google Inc.
 7//
 8//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 9//  use this file except in compliance with the License.  You may obtain a copy
10//  of the License at
11// 
12//  http://www.apache.org/licenses/LICENSE-2.0
13// 
14//  Unless required by applicable law or agreed to in writing, software
15//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17//  License for the specific language governing permissions and limitations under
18//  the License.
19//
20
21/// \cond Protocols
22
23@protocol GTMShading
24//  Returns the shadefunction for using in a shader.
25//  This shadefunction shoud never be released. It is owned by the implementor
26//  of the GTMShading protocol.
27//
28//  Returns:
29//    a shading function.
30- (CGFunctionRef)shadeFunction;
31
32//  Returns the colorSpace for using in a shader.
33//  This colorSpace shoud never be released. It is owned by the implementor
34//  of the GTMShading protocol.
35//
36//  Returns:
37//    a color space.
38- (CGColorSpaceRef)colorSpace;
39@end
40
41/// \endcond