Viewer source

From Second Life Wiki
Jump to navigation Jump to search

Once you have gotten the source, you may be wondering what it is you are looking at.


indra

Most of the action is in the indra directory. Here's an alphabetical list of subdirectories, along with a brief description of what the code in that directory is for, and perhaps a pointer to more information:

  • indra_complete - Solution File for Visual Studio
  • linux_crash_logger - Crash Logger
  • llaudio - Audio Engine. See Sound System for more detail.
  • llcharacter - Part of Rendering/Viewer - controls appearance of avatars. See Avatar Appearance for more
  • llcommon - Common Helper Functions (Hashing, Structured Data, Container Classes (deprecated) etc.)
    • Location for linden_preprocessor.h - global constants
  • llimage - Image Storage Class - Loading Targa Files, Textured images, Fileformats - Convert to GL image for rendering. See Image System for more.
  • llimagej2coj - an implementation of JPEG2000 encode/decode using OpenJPEG
  • llinventory - manages the inventory of a user (permissions, inventory, parcels). See Inventory for more.
  • llmath - Vectors, quaternions, etc. A basic 3D math library.
  • llmedia - wrappers over Quicktime
  • llmessage - Messaging/IPC TCP/UDP, Helper classes, Uses Apache Portable Runtime
  • llprimitive - More of Rendering - Object Transmission, Shared source for representation on client/server. PMC for objects.
  • llrender - Font, AGP wrappers
  • llui - User Interface widgets, the XML UI layer (a.k.a. "XUI"): buttons, checkboxes, text fields, scrollbars, select boxes, etc.
  • llvfs - Virtual file system. x-platform file handling (open, read/write, close)
  • llwindow - Cross-platform window abstraction (Getting messages, keyboard/mouse, GL context set-up, other low level UI stuff. Below llui in stack)
  • llxml - Wrapper for expat XML library.
  • lscript - LL Scripting
  • mac_crash_logger - Crash Logger
  • mac_updater - auto-updater for OS X
  • newview - Viewer (Client)
  • SConstruct - for the SCons build system
  • test - Test Code
  • win_crash_logger - Crash Logger
  • win_updater - auto-updater for Windows

scripts

Not much in this directory. However, one key file that lives here is message_template.msg, which describes each message in the protocol.