函数
|
Bool
|
HandleShaderPopupI
(
BaseList2D
*parent,
BaseShader
*¤t,
Int32
value,
Int
param)
|
Bool
|
BuildShaderPopupMenuI
(
BaseContainer
*menu,
BaseList2D
*parent,
BaseShader
*current,
Int
param)
|
Bool
|
HandleShaderPopup
(const
BaseContainer
&bc, const
DescID
&descid,
Int32
value,
Int
param)
|
Bool
|
BuildShaderPopupMenu
(
BaseContainer
*menu, const
BaseContainer
&bc, const
DescID
&descid,
Int
param)
|
String
|
GetChannelName
(
Int32
channelid)
|
Function Documentation
◆
HandleShaderPopupI()
Simplifies the task of shader operations: undo handling, removing existing shaders, keeping track of the shader trees etc. ('I' stands for isolated.)
-
另请参阅
-
HandleShaderPopup()
-
参数
-
[in]
|
parent
|
Element that carries the shaders. The caller owns the pointed object.
|
[in]
|
current
|
Currently set element, might be deleted, in which case the pointer is set to
nullptr
. The caller owns the pointed shader.
|
[in]
|
value
|
The operation:
SHADERPOPUP
|
[in]
|
param
|
The parameter. Depends on
value
|
-
返回
-
true
if successful, otherwise
false
.
◆
BuildShaderPopupMenuI()
Private
.
◆
HandleShaderPopup()
Simplifies the task of shader operations: undo handling, removing existing shaders, keeping track of the shader trees etc.
-
另请参阅
-
HandleShaderPopupI()
.
-
参数
-
[in]
|
bc
|
A container with links to
BaseList2D
elements. These must be stored under increasing IDs (starting with
1
).
|
[in]
|
descid
|
The description ID under which the shaders are stored.
|
[in]
|
value
|
The operation:
SHADERPOPUP
|
[in]
|
param
|
The parameter. Depends on
value
|
-
返回
-
true
if successful, otherwise
false
.
◆
BuildShaderPopupMenu()
Private
.
◆
GetChannelName()
Retrieves the name for the given channel type ID.
-
参数
-
[in]
|
channelid
|
The channel type:
CHANNEL
|
-
返回
-
The name for the channel type.