Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-27 02:41:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-27 02:41:18 +0300
commit6ebe21164468fe231749bea29d5152493ea61d42 (patch)
tree0da2be7881e8a0133169b452983d7ecbf2ee843d /doc
parentc5c987cde9da3f19280856f53a82024d0646ee50 (diff)
Cleanup: pep8
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/gpu.types.GPUOffScreen.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/python_api/examples/gpu.types.GPUOffScreen.py b/doc/python_api/examples/gpu.types.GPUOffScreen.py
index d927e393b96..aa9514d11b2 100644
--- a/doc/python_api/examples/gpu.types.GPUOffScreen.py
+++ b/doc/python_api/examples/gpu.types.GPUOffScreen.py
@@ -33,9 +33,9 @@ void main()
g_plane_vertices = np.array([
([-1.0, -1.0], [0.0, 0.0]),
([1.0, -1.0], [1.0, 0.0]),
- ([1.0, 1.0], [1.0, 1.0]),
- ([1.0, 1.0], [1.0, 1.0]),
- ([-1.0, 1.0], [0.0, 1.0]),
+ ([1.0, 1.0], [1.0, 1.0]),
+ ([1.0, 1.0], [1.0, 1.0]),
+ ([-1.0, 1.0], [0.0, 1.0]),
([-1.0, -1.0], [0.0, 0.0]),
], [('pos', 'f4', 2), ('uv', 'f4', 2)])
@@ -162,20 +162,20 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
format = gpu.types.GPUVertFormat()
pos_id = format.attr_add(
- id="pos",
- comp_type="F32",
- len=2,
- fetch_mode="FLOAT")
+ id="pos",
+ comp_type="F32",
+ len=2,
+ fetch_mode="FLOAT")
uv_id = format.attr_add(
- id="texCoord",
- comp_type="F32",
- len=2,
- fetch_mode="FLOAT")
+ id="texCoord",
+ comp_type="F32",
+ len=2,
+ fetch_mode="FLOAT")
vbo = gpu.types.GPUVertBuf(
- len=len(g_plane_vertices),
- format=format)
+ len=len(g_plane_vertices),
+ format=format)
vbo.fill(id=pos_id, data=g_plane_vertices["pos"])
vbo.fill(id=uv_id, data=g_plane_vertices["uv"])