Documentation ¶
Index ¶
- Variables
- type Mesh
- func (*Mesh) Descriptor() ([]byte, []int)deprecated
- func (x *Mesh) GetAlbedoMap() []byte
- func (x *Mesh) GetBitangents() []byte
- func (x *Mesh) GetIndices() []byte
- func (x *Mesh) GetMetalMap() []byte
- func (x *Mesh) GetName() string
- func (x *Mesh) GetNormalMap() []byte
- func (x *Mesh) GetNormals() []byte
- func (x *Mesh) GetPositions() []byte
- func (x *Mesh) GetRoughMap() []byte
- func (x *Mesh) GetState() string
- func (x *Mesh) GetTangents() []byte
- func (x *Mesh) GetTcoords() []byte
- func (*Mesh) ProtoMessage()
- func (x *Mesh) ProtoReflect() protoreflect.Message
- func (x *Mesh) Reset()
- func (x *Mesh) String() string
- type Model
- type State
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetBlendDstMode() State_BlendMode
- func (x *State) GetBlendEquation() State_BlendEquation
- func (x *State) GetBlendSrcMode() State_BlendMode
- func (x *State) GetBlending() bool
- func (x *State) GetColorWrite() bool
- func (x *State) GetCullFace() State_Cullface
- func (x *State) GetCulling() bool
- func (x *State) GetDepthFunc() State_DepthFunc
- func (x *State) GetDepthTest() bool
- func (x *State) GetDepthWrite() bool
- func (x *State) GetName() string
- func (x *State) GetProgramName() string
- func (x *State) GetScissorTest() bool
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
- type State_BlendEquation
- func (State_BlendEquation) Descriptor() protoreflect.EnumDescriptor
- func (x State_BlendEquation) Enum() *State_BlendEquation
- func (State_BlendEquation) EnumDescriptor() ([]byte, []int)deprecated
- func (x State_BlendEquation) Number() protoreflect.EnumNumber
- func (x State_BlendEquation) String() string
- func (State_BlendEquation) Type() protoreflect.EnumType
- type State_BlendMode
- func (State_BlendMode) Descriptor() protoreflect.EnumDescriptor
- func (x State_BlendMode) Enum() *State_BlendMode
- func (State_BlendMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x State_BlendMode) Number() protoreflect.EnumNumber
- func (x State_BlendMode) String() string
- func (State_BlendMode) Type() protoreflect.EnumType
- type State_Cullface
- func (State_Cullface) Descriptor() protoreflect.EnumDescriptor
- func (x State_Cullface) Enum() *State_Cullface
- func (State_Cullface) EnumDescriptor() ([]byte, []int)deprecated
- func (x State_Cullface) Number() protoreflect.EnumNumber
- func (x State_Cullface) String() string
- func (State_Cullface) Type() protoreflect.EnumType
- type State_DepthFunc
- func (State_DepthFunc) Descriptor() protoreflect.EnumDescriptor
- func (x State_DepthFunc) Enum() *State_DepthFunc
- func (State_DepthFunc) EnumDescriptor() ([]byte, []int)deprecated
- func (x State_DepthFunc) Number() protoreflect.EnumNumber
- func (x State_DepthFunc) String() string
- func (State_DepthFunc) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( State_Cullface_name = map[int32]string{ 0: "CULL_BACK", 1: "CULL_FRONT", 2: "CULL_BOTH", } State_Cullface_value = map[string]int32{ "CULL_BACK": 0, "CULL_FRONT": 1, "CULL_BOTH": 2, } )
Enum value maps for State_Cullface.
View Source
var ( State_BlendMode_name = map[int32]string{ 0: "BLEND_SRC_ALPHA", 1: "BLEND_ONE_MINUS_SRC_ALPHA", 2: "BLEND_ONE", } State_BlendMode_value = map[string]int32{ "BLEND_SRC_ALPHA": 0, "BLEND_ONE_MINUS_SRC_ALPHA": 1, "BLEND_ONE": 2, } )
Enum value maps for State_BlendMode.
View Source
var ( State_BlendEquation_name = map[int32]string{ 0: "BLEND_FUNC_ADD", 1: "BLEND_FUNC_MAX", } State_BlendEquation_value = map[string]int32{ "BLEND_FUNC_ADD": 0, "BLEND_FUNC_MAX": 1, } )
Enum value maps for State_BlendEquation.
View Source
var ( State_DepthFunc_name = map[int32]string{ 0: "DEPTH_LESS_EQUAL", 1: "DEPTH_LESS", 2: "DEPTH_EQUAL", } State_DepthFunc_value = map[string]int32{ "DEPTH_LESS_EQUAL": 0, "DEPTH_LESS": 1, "DEPTH_EQUAL": 2, } )
Enum value maps for State_DepthFunc.
View Source
var File_model_proto protoreflect.FileDescriptor
View Source
var File_state_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Mesh ¶
type Mesh struct { Indices []byte `protobuf:"bytes,1,opt,name=indices,proto3" json:"indices,omitempty"` Positions []byte `protobuf:"bytes,2,opt,name=positions,proto3" json:"positions,omitempty"` Normals []byte `protobuf:"bytes,3,opt,name=normals,proto3" json:"normals,omitempty"` Tangents []byte `protobuf:"bytes,4,opt,name=tangents,proto3" json:"tangents,omitempty"` Bitangents []byte `protobuf:"bytes,5,opt,name=bitangents,proto3" json:"bitangents,omitempty"` Tcoords []byte `protobuf:"bytes,6,opt,name=tcoords,proto3" json:"tcoords,omitempty"` AlbedoMap []byte `protobuf:"bytes,7,opt,name=albedo_map,json=albedoMap,proto3" json:"albedo_map,omitempty"` NormalMap []byte `protobuf:"bytes,8,opt,name=normal_map,json=normalMap,proto3" json:"normal_map,omitempty"` RoughMap []byte `protobuf:"bytes,9,opt,name=rough_map,json=roughMap,proto3" json:"rough_map,omitempty"` MetalMap []byte `protobuf:"bytes,10,opt,name=metal_map,json=metalMap,proto3" json:"metal_map,omitempty"` State string `protobuf:"bytes,11,opt,name=state,proto3" json:"state,omitempty"` Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Mesh) Descriptor
deprecated
func (*Mesh) GetAlbedoMap ¶
func (*Mesh) GetBitangents ¶
func (*Mesh) GetIndices ¶
func (*Mesh) GetMetalMap ¶
func (*Mesh) GetNormalMap ¶
func (*Mesh) GetNormals ¶
func (*Mesh) GetPositions ¶
func (*Mesh) GetRoughMap ¶
func (*Mesh) GetTangents ¶
func (*Mesh) GetTcoords ¶
func (*Mesh) ProtoMessage ¶
func (*Mesh) ProtoMessage()
func (*Mesh) ProtoReflect ¶
func (x *Mesh) ProtoReflect() protoreflect.Message
type Model ¶
type Model struct { Meshes []*Mesh `protobuf:"bytes,1,rep,name=meshes,proto3" json:"meshes,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type State ¶
type State struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ProgramName string `protobuf:"bytes,2,opt,name=programName,proto3" json:"programName,omitempty"` Culling bool `protobuf:"varint,3,opt,name=culling,proto3" json:"culling,omitempty"` CullFace State_Cullface `protobuf:"varint,4,opt,name=cullFace,proto3,enum=protos.State_Cullface" json:"cullFace,omitempty"` Blending bool `protobuf:"varint,5,opt,name=blending,proto3" json:"blending,omitempty"` BlendSrcMode State_BlendMode `` /* 128-byte string literal not displayed */ BlendDstMode State_BlendMode `` /* 128-byte string literal not displayed */ BlendEquation State_BlendEquation `` /* 133-byte string literal not displayed */ DepthTest bool `protobuf:"varint,9,opt,name=depth_test,json=depthTest,proto3" json:"depth_test,omitempty"` DepthWrite bool `protobuf:"varint,10,opt,name=depth_write,json=depthWrite,proto3" json:"depth_write,omitempty"` DepthFunc State_DepthFunc `protobuf:"varint,11,opt,name=depth_func,json=depthFunc,proto3,enum=protos.State_DepthFunc" json:"depth_func,omitempty"` ColorWrite bool `protobuf:"varint,12,opt,name=color_write,json=colorWrite,proto3" json:"color_write,omitempty"` ScissorTest bool `protobuf:"varint,13,opt,name=scissor_test,json=scissorTest,proto3" json:"scissor_test,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) GetBlendDstMode ¶
func (x *State) GetBlendDstMode() State_BlendMode
func (*State) GetBlendEquation ¶
func (x *State) GetBlendEquation() State_BlendEquation
func (*State) GetBlendSrcMode ¶
func (x *State) GetBlendSrcMode() State_BlendMode
func (*State) GetBlending ¶
func (*State) GetColorWrite ¶
func (*State) GetCullFace ¶
func (x *State) GetCullFace() State_Cullface
func (*State) GetCulling ¶
func (*State) GetDepthFunc ¶
func (x *State) GetDepthFunc() State_DepthFunc
func (*State) GetDepthTest ¶
func (*State) GetDepthWrite ¶
func (*State) GetProgramName ¶
func (*State) GetScissorTest ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type State_BlendEquation ¶
type State_BlendEquation int32
const ( State_BLEND_FUNC_ADD State_BlendEquation = 0 State_BLEND_FUNC_MAX State_BlendEquation = 1 )
func (State_BlendEquation) Descriptor ¶
func (State_BlendEquation) Descriptor() protoreflect.EnumDescriptor
func (State_BlendEquation) Enum ¶
func (x State_BlendEquation) Enum() *State_BlendEquation
func (State_BlendEquation) EnumDescriptor
deprecated
func (State_BlendEquation) EnumDescriptor() ([]byte, []int)
Deprecated: Use State_BlendEquation.Descriptor instead.
func (State_BlendEquation) Number ¶
func (x State_BlendEquation) Number() protoreflect.EnumNumber
func (State_BlendEquation) String ¶
func (x State_BlendEquation) String() string
func (State_BlendEquation) Type ¶
func (State_BlendEquation) Type() protoreflect.EnumType
type State_BlendMode ¶
type State_BlendMode int32
const ( State_BLEND_SRC_ALPHA State_BlendMode = 0 State_BLEND_ONE_MINUS_SRC_ALPHA State_BlendMode = 1 State_BLEND_ONE State_BlendMode = 2 )
func (State_BlendMode) Descriptor ¶
func (State_BlendMode) Descriptor() protoreflect.EnumDescriptor
func (State_BlendMode) Enum ¶
func (x State_BlendMode) Enum() *State_BlendMode
func (State_BlendMode) EnumDescriptor
deprecated
func (State_BlendMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use State_BlendMode.Descriptor instead.
func (State_BlendMode) Number ¶
func (x State_BlendMode) Number() protoreflect.EnumNumber
func (State_BlendMode) String ¶
func (x State_BlendMode) String() string
func (State_BlendMode) Type ¶
func (State_BlendMode) Type() protoreflect.EnumType
type State_Cullface ¶
type State_Cullface int32
const ( State_CULL_BACK State_Cullface = 0 State_CULL_FRONT State_Cullface = 1 State_CULL_BOTH State_Cullface = 2 )
func (State_Cullface) Descriptor ¶
func (State_Cullface) Descriptor() protoreflect.EnumDescriptor
func (State_Cullface) Enum ¶
func (x State_Cullface) Enum() *State_Cullface
func (State_Cullface) EnumDescriptor
deprecated
func (State_Cullface) EnumDescriptor() ([]byte, []int)
Deprecated: Use State_Cullface.Descriptor instead.
func (State_Cullface) Number ¶
func (x State_Cullface) Number() protoreflect.EnumNumber
func (State_Cullface) String ¶
func (x State_Cullface) String() string
func (State_Cullface) Type ¶
func (State_Cullface) Type() protoreflect.EnumType
type State_DepthFunc ¶
type State_DepthFunc int32
const ( State_DEPTH_LESS_EQUAL State_DepthFunc = 0 State_DEPTH_LESS State_DepthFunc = 1 State_DEPTH_EQUAL State_DepthFunc = 2 )
func (State_DepthFunc) Descriptor ¶
func (State_DepthFunc) Descriptor() protoreflect.EnumDescriptor
func (State_DepthFunc) Enum ¶
func (x State_DepthFunc) Enum() *State_DepthFunc
func (State_DepthFunc) EnumDescriptor
deprecated
func (State_DepthFunc) EnumDescriptor() ([]byte, []int)
Deprecated: Use State_DepthFunc.Descriptor instead.
func (State_DepthFunc) Number ¶
func (x State_DepthFunc) Number() protoreflect.EnumNumber
func (State_DepthFunc) String ¶
func (x State_DepthFunc) String() string
func (State_DepthFunc) Type ¶
func (State_DepthFunc) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.