mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
Remove comments
This commit is contained in:
parent
991d0a975b
commit
f76171c79d
@ -9,10 +9,8 @@ import (
|
|||||||
"github.com/hajimehoshi/go-ebiten/graphics"
|
"github.com/hajimehoshi/go-ebiten/graphics"
|
||||||
"github.com/hajimehoshi/go-ebiten/graphics/matrix"
|
"github.com/hajimehoshi/go-ebiten/graphics/matrix"
|
||||||
"github.com/hajimehoshi/go-ebiten/graphics/opengl/offscreen"
|
"github.com/hajimehoshi/go-ebiten/graphics/opengl/offscreen"
|
||||||
// "github.com/hajimehoshi/go-ebiten/graphics/opengl/shader"
|
|
||||||
"github.com/hajimehoshi/go-ebiten/graphics/opengl/texture"
|
"github.com/hajimehoshi/go-ebiten/graphics/opengl/texture"
|
||||||
grendertarget "github.com/hajimehoshi/go-ebiten/graphics/rendertarget"
|
grendertarget "github.com/hajimehoshi/go-ebiten/graphics/rendertarget"
|
||||||
// gtexture "github.com/hajimehoshi/go-ebiten/graphics/texture"
|
|
||||||
"image"
|
"image"
|
||||||
"math"
|
"math"
|
||||||
)
|
)
|
||||||
@ -23,9 +21,7 @@ type Context struct {
|
|||||||
screenHeight int
|
screenHeight int
|
||||||
screenScale int
|
screenScale int
|
||||||
ids *ids
|
ids *ids
|
||||||
//mainFramebufferTexture *grendertarget.RenderTarget
|
offscreen *offscreen.Offscreen
|
||||||
//projectionMatrix [16]float32
|
|
||||||
offscreen *offscreen.Offscreen
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func newContext(screenWidth, screenHeight, screenScale int) *Context {
|
func newContext(screenWidth, screenHeight, screenScale int) *Context {
|
||||||
@ -96,15 +92,10 @@ func (context *Context) SetOffscreen(renderTargetId graphics.RenderTargetId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (context *Context) setOffscreen(rt *grendertarget.RenderTarget) {
|
func (context *Context) setOffscreen(rt *grendertarget.RenderTarget) {
|
||||||
/*C.glFlush()
|
|
||||||
|
|
||||||
rt.SetAsOffscreen(context.offscreen)
|
|
||||||
context.projectionMatrix = setter.projectionMatrix*/
|
|
||||||
context.offscreen.Set(rt)
|
context.offscreen.Set(rt)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (context *Context) setMainFramebufferOffscreen() {
|
func (context *Context) setMainFramebufferOffscreen() {
|
||||||
//context.setOffscreen(context.mainFramebufferTexture)
|
|
||||||
context.offscreen.SetMainFramebuffer()
|
context.offscreen.SetMainFramebuffer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user