[glGlfw] created SmartResource class