Lecture 5: Texture Mapping (26)

When implementing Barycentric interpolation in C++, is it then a good habit to malloc() our Z values?


not entirely sure what you mean (i'm not quite sure where Z values play into barycentric material), but there's no need to malloc in C++ since you can usually use the new keyword or built in constructors to do memory allocation for you (usually you won't have to directly interface with it for our projects)

You must be enrolled in the course to comment