FeedbackD.dpr 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. (*
  2. This demo shows how to use a GLFeedback object to
  3. extract mesh data from regular GLScene objects.
  4. The GLFeedback object uses the GL_FEEDBACK render
  5. mode to gather vertex information passed through
  6. the OpenGL render pipeline. The resultant buffer
  7. can store information like point, line and polygon
  8. vertex position, texture coordinate and color.
  9. The BuildMeshFromBuffer function will parse the
  10. buffer for polygon data and apply it to the assigned
  11. lists. If the VertexIndices list is assigned it will
  12. perform a mesh recalculation to eliminate any
  13. duplicate vertex positions which will allow for
  14. smooth normal calculation. The texture coords
  15. returned will be per index value. They can either
  16. be used in a TFGIndexTexCoordList or resampled for
  17. use with other facegroup types.
  18. *)
  19. program FeedbackD;
  20. uses
  21. Forms,
  22. fFeedbackD in 'fFeedbackD.pas' {FormFeedback};
  23. {$R *.res}
  24. begin
  25. Application.Initialize;
  26. Application.CreateForm(TFormFeedback, FormFeedback);
  27. Application.Run;
  28. end.