render: move render_world_helper, remove chunks drawn behind view
This commit is contained in:
@@ -66,6 +66,11 @@ func NewTextureRGBA(image *image.RGBA) *Texture {
|
||||
return &Texture{tex: tex}
|
||||
}
|
||||
|
||||
// NewTextureFromHandle creates a new *Texture from an existing OpenGL handle.
|
||||
func NewTextureFromHandle(handle uint32) *Texture {
|
||||
return &Texture{tex: handle}
|
||||
}
|
||||
|
||||
// updateFilters updates the MIN/MAG_FILTER parameters of the texture based on t.smooth and t.hasMipmap.
|
||||
//
|
||||
// It does not bind the texture; the caller has to do that
|
||||
|
||||
Reference in New Issue
Block a user