gospout

package module
v0.0.0-...-d492301 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 9 Imported by: 0

README

gospout

A Go module for using Spout on Windows

To get started, follow the instructions in gettingstarted.txt

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 int, height int) (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

Directories

Path Synopsis
cmd
gospout-server
Package main Code generated by go-bindata.
Package main Code generated by go-bindata.
internal

Jump to

Keyboard shortcuts

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