WARNING: BTDPE is not recommended to be used yet. Errors and issues are expected. You need to download BTDPE from the download page.You will need a python file that runs BTDPE. That file must contain:
Python
import BTDPE_v1_0_0_Beta as BTDPE
import turtle
# Your code here
BTDPE.register_turtle(turtle) # This starts a loop and starts rendering. This might be changed in the future.
Note: When using BTDPE, your BTDPE module must be in the same directory as your python file that runs BTDPE and in that same directory you'll need a folder called 'BTDPE_Cache' WARNING: Do NOT use any code after and do not put a loop before registering the turtle to BTDPE. If you put the loop before registering, BTDPE won't get to register your turtle. If you put any code after registering your turtle BTDPE will IGNORE it. (This might be changed in the future) How to create a cube in BTDPE To make a cube in BTDPE you must use this function:
meshTypestringTells BTDPE what type of mesh to create ("cube" is only supported).✅
namestringSets the unique name of the mesh.✅
positionobjectSets the coordinates {x, y, z} of the mesh.✅
sizeobjectSets the dimentions {x, y, z} of the mesh.✅
orientationobjectSets the orientation {x, y, z} of the mesh.❌
shadersAllowedbooleanWhether shaders can be applied to the mesh.❌
allShadersarrayList of all shaders to apply.❌
shaderTypestringSpecific shader type.❌
castShadowsbooleanWhether the mesh can cast shadows.❌
receiveShadowsbooleanWhether the mesh can receive shadows.❌
textureClassarrayTexture definitions.❌
colorobjectSets the color {r, g, b} of the mesh in RGB.❌
attributesobjectThe attributes of the mesh.❓
texturesarrayTexture data for the mesh.❌
Note: The only mesh types are: Cube in v1.0.0 Beta Note: The "shadersAllowed", "allShaders", "shaderType", "castShadows", "receiveShadows", "textureClass", "textures", "color" and "orientation" in this function does NOT work in v1.0.0 Beta Example: