WebGL Textures & Vertices

Beginner's Guide

Page Sixty Nine

WebGL API createTexture()

Step 2 WebGL method createTexture() receives no parameters and returns an empty WebGLTexture reference. The following line demonstrates assigning a new WebGLTexture to a GLEntity.texture property.

entity.texture = gl.createTexture();

WebGL Beginner's Guide Introduction WebGL Beginner's Guide
Copyright © 2015 Seven Thunder Software. All Rights Reserved.