BRL-CAD

Extruded bitmap (EBM) images from database object, implement object reader (task #4 of 5)

For this fourth task, implement logic that reads bw data from an object as a new get_obj_data() function, called by an ebm_get_data() function, and update rt_ebm_import5() to call ebm_get_data(). You may want to refer to src/librt/primitives/dsp/dsp.c as it has a very similar example, but pay attention to the different data types of EBM vs DSP (ebm reads unsigned char data, dsp reads unsigned 16bit data).

SUBMIT a patch file with your source code changes.

Task tags

  • computer graphics
  • file i/o
  • c/c++

Students who completed this task

Jebbly

Task type

  • code Code
close

2019