File: parseBackFaceCulling.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (20 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function [bfc]=parseBackFaceCulling(typeOfPlot,argList,pptyname)

if length(argList)>=2
if type(argList(2))==10
   select argList(2)
   case 'yes'
      bfc='yes';
   case 'no'
      bfc='no';
   else
     _error(sprintf('%s : unknown BackFaceCulling specification ''%s''',typeOfPlot,argList(2)))
   end
else
   _error(sprintf('%s : BackFaceCulling specification must be a string',typeOfPlot))
end
else
    _error(sprintf('%s : missing BackFaceCulling specification',typeOfPlot))
end

endfunction // end of parseBackFaceCulling