Skip to main content

The blenlib and blenkernel Modules

  • Chapter
  • First Online:
Core Blender Development
  • 974 Accesses

Abstract

In this chapter, we discuss Blender’s two largest “core” utility libraries. blenlib and blenkernel are the primary modules for generic processing and data. As such, they share a history in the Blender codebase. When appropriate, we will use Blender’s unit tests—written with Google Test—to survey blenlib’s interface (BLI_* functions). Recall struct bContext is defined in blenkernel. We looked at the CTX_* API, a subset of the blenkernel API in Chapter 2. blenkernel’s API is generally accessed by BKE_* functions, which comprise a larger portion of its interface. blenkernel offloads data handling for makesdna, by operating on “DNA” data types. Other utility modules, namely, blenloader, blenfont, and blentranslation, are more specialized and beyond the scope of the current chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    An xUnit framework written by Google for C++ (and C) programs.

  2. 2.

    Thus, blenlib has utility “mixin” classes, i.e., classes not viable on their own. “Mixins” use multiple inheritance to combine member data and functions between more than one class type.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to APress Media, LLC , part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Hollister, B.E. (2021). The blenlib and blenkernel Modules. In: Core Blender Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6415-7_4

Download citation

Publish with us

Policies and ethics