1. Check out our companion app, Forums for Android! Download from Google Play

using drawables in multiple objects

Discussion in 'Application Development' started by mrqs, Jul 12, 2010.

  1. mrqs

    mrqs Well-Known Member
    Thread Starter

    i come from a c++ background, so the one thing i keep having trouble with on languages such as c# and java is that i'm never sure if i'm sending a pointer to an object or a copy of the object
    most people say it's a good thing that you don't have to mess around with those stupid pointers, but i kinda miss them

    so i have class A that let's say is a critter going around the screen
    there's a resource.drawable for said critter and i have multiple instances of A running around at the same time
    so where do i read the resource so that i only have one instance of the image object in memory and every A -object has a pointer to it (as opposed to every A -object having its own drawable object) ?


  2. mrqs

    mrqs Well-Known Member
    Thread Starter

    anyone? :(

Share This Page