Golang Begin Examples

文章推薦指數: 80 %
投票人數:10人

Golang Begin - 3 examples found. These are the top rated real world Golang examples of github.com/zombiezen/Go-OpenGL/gl.Begin extracted from open source ... Togglenavigation HotExamplesENENRUDEFRESPTITJPZH GoPHPC#JavaGoC++PythonJSTS SearchGolangBeginExamplesGolangBegin-3examplesfound.ThesearethetopratedrealworldGolangexamplesofgithub.com/zombiezen/Go-OpenGL/gl.Beginextractedfromopensourceprojects.Youcanrateexamplestohelpusimprovethequalityofexamples.ProgrammingLanguage:GolangNamespace/PackageName:github.com/zombiezen/Go-OpenGL/glMethod/Function:BeginExamplesathotexamples.com:3RelatedNewReaderSetLoggerNewFilterBuilderDumpAsJsonBlendFuncMakeProgramChunkSizeFileTypeAddOrUpdateCertAndKeyToCamelCaseRelatedinlangsr_get_collection_icon(PHP)ObjectManagerInterface(PHP)RegType(C#)IVisibilityBuilder(C#)image_HandlerCreate(C++)convertInputCoords(C++)PsiExpression(Java)L2DatabaseFactory(Java)jr16(Python)mkdir(Python)Example#10ShowfileFile: asteroids.go Project: zombiezen/Go-GLUTfuncdrawShip(anglefloat32){ gl.PushMatrix() gl.Translatef(x,y,0.0) gl.Rotatef(angle,0.0,0.0,1.0) ifthrust{ gl.Color3f(1.0,0.0,0.0) gl.Begin(gl.LINE_STRIP) gl.Vertex2f(-0.75,-0.5) gl.Vertex2f(-1.75,0) gl.Vertex2f(-0.75,0.5) gl.End() } gl.Color3f(1.0,1.0,0.0) gl.Begin(gl.LINE_LOOP) gl.Vertex2f(2.0,0.0) gl.Vertex2f(-1.0,-1.0) gl.Vertex2f(-0.5,0.0) gl.Vertex2f(-1.0,1.0) gl.Vertex2f(2.0,0.0) gl.End() ifshield{ gl.Color3f(0.1,0.1,1.0) gl.Begin(gl.LINE_LOOP) forrad:=0.0;rad<12.0;rad+=1.0{ gl.Vertex2f( float32(2.3*math.Cos(2*float64(rad)/math.Pi)+0.2), float32(2.0*math.Sin(2*float64(rad)/math.Pi))) } gl.End() } gl.PopMatrix() }Example#20ShowfileFile: asteroids.go Project: zombiezen/Go-GLUTfuncdrawBullets(){ gl.Begin(gl.POINTS) gl.Color3f(1.0,0.0,1.0) fori:=0;i



請為這篇文章評分?