1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
| procedure tform1.strauch(x,y,z,xs,ys,zs:glfloat); begin glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA,GL_ONE); glDisable(GL_DEPTH_TEST);
strauch1.Bind; glbegin(gl_quads); gltexcoord2f(0,0);glvertex3f(x+xs/2,y,z); gltexcoord2f(1,0);glvertex3f(x-xs/2,y,z); gltexcoord2f(1,1);glvertex3f(x-xs/2,y+ys,z); gltexcoord2f(0,1);glvertex3f(x+xs/2,y+ys,z); glend; glbegin(gl_quads); gltexcoord2f(0,0);glvertex3f(x,y,z-zs/2); gltexcoord2f(1,0);glvertex3f(x,y,z+zs/2); gltexcoord2f(1,1);glvertex3f(x,y+ys,z+zs/2); gltexcoord2f(0,1);glvertex3f(x,y+ys,z-zs/2); glend;
gldisable(gl_blend); end; |