protos

package
v0.0.0-...-73aabcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Mesh.ProtoReflect.Descriptor instead.

func (*Mesh) GetAlbedoMap

func (x *Mesh) GetAlbedoMap() []byte

func (*Mesh) GetBitangents

func (x *Mesh) GetBitangents() []byte

func (*Mesh) GetIndices

func (x *Mesh) GetIndices() []byte

func (*Mesh) GetMetalMap

func (x *Mesh) GetMetalMap() []byte

func (*Mesh) GetName

func (x *Mesh) GetName() string

func (*Mesh) GetNormalMap

func (x *Mesh) GetNormalMap() []byte

func (*Mesh) GetNormals

func (x *Mesh) GetNormals() []byte

func (*Mesh) GetPositions

func (x *Mesh) GetPositions() []byte

func (*Mesh) GetRoughMap

func (x *Mesh) GetRoughMap() []byte

func (*Mesh) GetState

func (x *Mesh) GetState() string

func (*Mesh) GetTangents

func (x *Mesh) GetTangents() []byte

func (*Mesh) GetTcoords

func (x *Mesh) GetTcoords() []byte

func (*Mesh) ProtoMessage

func (*Mesh) ProtoMessage()

func (*Mesh) ProtoReflect

func (x *Mesh) ProtoReflect() protoreflect.Message

func (*Mesh) Reset

func (x *Mesh) Reset()

func (*Mesh) String

func (x *Mesh) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetMeshes

func (x *Model) GetMeshes() []*Mesh

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

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 (x *State) GetBlending() bool

func (*State) GetColorWrite

func (x *State) GetColorWrite() bool

func (*State) GetCullFace

func (x *State) GetCullFace() State_Cullface

func (*State) GetCulling

func (x *State) GetCulling() bool

func (*State) GetDepthFunc

func (x *State) GetDepthFunc() State_DepthFunc

func (*State) GetDepthTest

func (x *State) GetDepthTest() bool

func (*State) GetDepthWrite

func (x *State) GetDepthWrite() bool

func (*State) GetName

func (x *State) GetName() string

func (*State) GetProgramName

func (x *State) GetProgramName() string

func (*State) GetScissorTest

func (x *State) GetScissorTest() bool

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

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) Enum

func (State_BlendEquation) EnumDescriptor deprecated

func (State_BlendEquation) EnumDescriptor() ([]byte, []int)

Deprecated: Use State_BlendEquation.Descriptor instead.

func (State_BlendEquation) Number

func (State_BlendEquation) String

func (x State_BlendEquation) String() string

func (State_BlendEquation) Type

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) 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 (State_BlendMode) String

func (x State_BlendMode) String() string

func (State_BlendMode) Type

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) 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 (State_Cullface) String

func (x State_Cullface) String() string

func (State_Cullface) Type

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) 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 (State_DepthFunc) String

func (x State_DepthFunc) String() string

func (State_DepthFunc) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL