spout

package
v0.0.0-...-d0979cb Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileShader

func CompileShader(source string, shaderType uint32) (uint32, error)

CompileShader compiler a shader

func Config

func Config() string

Config returns a config string

func CreateReceiver

func CreateReceiver(sendername string, width *int, height *int, bUseActive bool) bool

CreateReceiver creates a Receiver

func NewBlankTexture

func NewBlankTexture(width int32, height int32) (uint32, error)

NewBlankTexture creates a new blank Texture

func NewProgram

func NewProgram(vertexShaderSource, fragmentShaderSource string) (uint32, error)

NewProgram compiles vertex and fragment shaders

func NewTexture

func NewTexture(file string) (uint32, error)

NewTexture creates a new Texture

func NewTextureFromReader

func NewTextureFromReader(reader io.Reader) (uint32, error)

NewTextureFromReader creates a new Texture from an io.Reader

func ReceiveTexture

func ReceiveTexture(sendername string, width *int, height *int, textureID int, textureTarget int, bInvert bool, hostFBO int) bool

ReceiveTexture receives a texture

func ReleaseReceiver

func ReleaseReceiver()

ReleaseReceiver releases things

func SendTexture

func SendTexture(s Sender, texture uint32, width int, height int) bool

SendTexture sends a texture

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is a spout sender

func CreateSender

func CreateSender(name string, width int, height int) *Sender

CreateSender returns a Sender

type VizProgram

type VizProgram struct {
	Program uint32

	VertexShader   string
	FragmentShader string

	ProjectionUniform int32
	TextureUniform    int32
	ColorUniform      int32
	MiscUniform       int32
	DebugUniform      int32
	TjtUniform        int32
}

VizProgram xxx

Jump to

Keyboard shortcuts

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