소스 검색

chart dev...

leonsal 8 년 전
부모
커밋
a88e895c1f
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      graphic/graphic.go

+ 6 - 0
graphic/graphic.go

@@ -43,6 +43,12 @@ type IGraphic interface {
 	RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo)
 }
 
+func NewGraphic(igeom geometry.IGeometry, mode uint32) *Graphic {
+
+	gr := new(Graphic)
+	return gr.Init(igeom, mode)
+}
+
 // Init initializes a Graphic type embedded in another type
 // with the specified geometry and OpenGL mode.
 func (gr *Graphic) Init(igeom geometry.IGeometry, mode uint32) *Graphic {